Classes | Namespaces | Macros | Functions
service_config_test.cc File Reference
#include "src/core/lib/service_config/service_config.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/strings/str_cat.h"
#include <grpc/grpc.h>
#include "src/core/ext/filters/client_channel/resolver_result_parsing.h"
#include "src/core/ext/filters/client_channel/retry_service_config.h"
#include "src/core/ext/filters/message_size/message_size_filter.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/service_config/service_config_impl.h"
#include "src/core/lib/service_config/service_config_parser.h"
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
Include dependency graph for service_config_test.cc:

Go to the source code of this file.

Classes

class  grpc_core::testing::ClientChannelParserTest
 
class  grpc_core::testing::ErroredParsersScopingTest
 
class  grpc_core::testing::ErrorParser
 
class  grpc_core::testing::MessageSizeParserTest
 
class  grpc_core::testing::RetryParserTest
 
class  grpc_core::testing::ServiceConfigTest
 
class  grpc_core::testing::TestParsedConfig1
 
class  grpc_core::testing::TestParser1
 
class  grpc_core::testing::TestParser2
 

Namespaces

 grpc_core
 
 grpc_core::testing
 

Macros

#define CHILD_ERROR_TAG   ".*referenced_errors.*"
 
#define GRPC_ARG_DISABLE_PARSING   "disable_parsing"
 

Functions

int main (int argc, char **argv)
 
 grpc_core::testing::TEST (ServiceConfigParserTest, DoubleRegistration)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, InvalidGrpclbLoadBalancingConfig)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, InvalidHealthCheckMultipleEntries)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, InvalidTimeout)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, InvalidWaitForReady)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, LoadBalancingPolicyXdsNotAllowed)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, UnknownLoadBalancingConfig)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, UnknownLoadBalancingPolicy)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidHealthCheck)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidLoadBalancingConfigGrpclb)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidLoadBalancingConfigPickFirst)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidLoadBalancingConfigRoundRobin)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidLoadBalancingConfigXds)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidLoadBalancingPolicy)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidLoadBalancingPolicyAllCaps)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidTimeout)
 
 grpc_core::testing::TEST_F (ClientChannelParserTest, ValidWaitForReady)
 
 grpc_core::testing::TEST_F (ErroredParsersScopingTest, GlobalParams)
 
 grpc_core::testing::TEST_F (ErroredParsersScopingTest, MethodParams)
 
 grpc_core::testing::TEST_F (MessageSizeParserTest, InvalidMaxRequestMessageBytes)
 
 grpc_core::testing::TEST_F (MessageSizeParserTest, InvalidMaxResponseMessageBytes)
 
 grpc_core::testing::TEST_F (MessageSizeParserTest, Valid)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyBackoffMultiplierBadValue)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyBackoffMultiplierWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyEmptyRetryableStatusCodes)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyInitialBackoffBadValue)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyInitialBackoffWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyMaxAttemptsBadValue)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyMaxAttemptsWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyMaxBackoffBadValue)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyMaxBackoffWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyPerAttemptRecvTimeoutBadValue)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyPerAttemptRecvTimeoutUnparseable)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyPerAttemptRecvTimeoutWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyRequiredFieldsMissing)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyRetryableStatusCodesWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyUnparseableRetryableStatusCodes)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryPolicyWrongType)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryThrottlingInvalidTokenRatio)
 
 grpc_core::testing::TEST_F (RetryParserTest, InvalidRetryThrottlingNegativeMaxTokens)
 
 grpc_core::testing::TEST_F (RetryParserTest, RetryThrottlingMissingFields)
 
 grpc_core::testing::TEST_F (RetryParserTest, ValidRetryPolicy)
 
 grpc_core::testing::TEST_F (RetryParserTest, ValidRetryPolicyWithPerAttemptRecvTimeout)
 
 grpc_core::testing::TEST_F (RetryParserTest, ValidRetryPolicyWithPerAttemptRecvTimeoutAndUnsetRetryableStatusCodes)
 
 grpc_core::testing::TEST_F (RetryParserTest, ValidRetryPolicyWithPerAttemptRecvTimeoutIgnoredWhenHedgingDisabled)
 
 grpc_core::testing::TEST_F (RetryParserTest, ValidRetryThrottling)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, BasicTest1)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorCheck1)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorDuplicateDefaultMethodConfigs)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorDuplicateDefaultMethodConfigsWithEmptyService)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorDuplicateDefaultMethodConfigsWithNullService)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorDuplicateMethodConfigNames)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorDuplicateMethodConfigNamesWithEmptyMethod)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ErrorDuplicateMethodConfigNamesWithNullMethod)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser1BasicTest1)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser1BasicTest2)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser1DisabledViaChannelArg)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser1ErrorInvalidType)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser1ErrorInvalidValue)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser2BasicTest)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser2DisabledViaChannelArg)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser2ErrorInvalidType)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, Parser2ErrorInvalidValue)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, SkipMethodConfigWithNoNameOrEmptyName)
 
 grpc_core::testing::TEST_F (ServiceConfigTest, ValidMethodConfig)
 

Macro Definition Documentation

◆ CHILD_ERROR_TAG

#define CHILD_ERROR_TAG   ".*referenced_errors.*"

Definition at line 52 of file service_config_test.cc.

◆ GRPC_ARG_DISABLE_PARSING

#define GRPC_ARG_DISABLE_PARSING   "disable_parsing"

Definition at line 46 of file service_config_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1575 of file service_config_test.cc.



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