Instance Methods | Class Methods | Properties | List of all members
TestBase Class Reference

#import <TestBase.h>

Inheritance diagram for TestBase:
Inheritance graph
[legend]

Instance Methods

(int32_t- encodingOverhead
 

Class Methods

(NSString *) + host
 
(NSString *) + hostNameOverride
 
(BOOL+ isRemoteTest
 
(NSString *) + PEMRootCertificates
 
(GRPCTransportID+ transport
 

Properties

XCTestSuite * defaultTestSuite
 

Detailed Description

This is an abstract class that needs to be subclassed. See |+host|.

Definition at line 26 of file TestBase.h.

Method Documentation

◆ encodingOverhead

- (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.

◆ host

+ (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.

◆ hostNameOverride

+ (NSString *) hostNameOverride

The host name to be used for TLS verification in the tests.

◆ isRemoteTest

+ (BOOL) isRemoteTest

Indication of whether the test is connecting to a remote server.

◆ PEMRootCertificates

+ (NSString *) PEMRootCertificates

The root certificates to be used. The base implementation returns nil. Subclasses should override to appropriate settings.

◆ transport

+ (GRPCTransportID) transport

Property Documentation

◆ defaultTestSuite

- (XCTestSuite*) defaultTestSuite
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.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:49