#import <TestBase.h>
Instance Methods | |
(int32_t) | - encodingOverhead |
Class Methods | |
(NSString *) | + host |
(NSString *) | + hostNameOverride |
(BOOL) | + isRemoteTest |
(NSString *) | + PEMRootCertificates |
(GRPCTransportID) | + transport |
Properties | |
XCTestSuite * | defaultTestSuite |
This is an abstract class that needs to be subclassed. See |+host|.
Definition at line 26 of file TestBase.h.
- (int32_t) encodingOverhead |
Bytes of overhead of test proto responses due to encoding. This is used to exercise the behavior when responses are just above or below the max response size. For some reason, the local and remote servers enconde responses with different overhead (?), so this is defined per-subclass.
+ (NSString *) host |
Host to send the RPCs to. The base implementation returns nil, which would make all tests to fail. Override in a subclass to perform these tests against a specific address.
+ (NSString *) hostNameOverride |
The host name to be used for TLS verification in the tests.
+ (BOOL) isRemoteTest |
Indication of whether the test is connecting to a remote server.
+ (NSString *) PEMRootCertificates |
The root certificates to be used. The base implementation returns nil. Subclasses should override to appropriate settings.
+ (GRPCTransportID) transport |
|
readatomicassign |
The test suite to run, checking if the current XCTestCase instance is the base class. If so, run no tests (disabled). Otherwise, proceed to normal execution.
Definition at line 31 of file TestBase.h.