diff options
author | David Garcia Quintas <dgq@google.com> | 2017-07-13 16:12:30 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2017-07-13 16:12:30 -0700 |
commit | 9a4ed686b1a0a0f3b655a34e61151b1dcb0db744 (patch) | |
tree | 0c0a43e1883c37028c684d8fc96238942122f1aa /src/core/ext/filters/client_channel/subchannel_index.h | |
parent | a9b9add1edd1eb359f7aa8c9831060805cccbb14 (diff) |
Improved testing
Diffstat (limited to 'src/core/ext/filters/client_channel/subchannel_index.h')
-rw-r--r-- | src/core/ext/filters/client_channel/subchannel_index.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/subchannel_index.h b/src/core/ext/filters/client_channel/subchannel_index.h index e303bfaa05..98d882a453 100644 --- a/src/core/ext/filters/client_channel/subchannel_index.h +++ b/src/core/ext/filters/client_channel/subchannel_index.h @@ -59,4 +59,16 @@ void grpc_subchannel_index_init(void); /** Shutdown the subchannel index (global) */ void grpc_subchannel_index_shutdown(void); +/** \em TEST ONLY. + * If \a force_creation is true, all key comparisons will be false, resulting in + * new subchannels always being created. Otherwise, the keys will be compared as + * usual. + * + * This function is *not* threadsafe on purpose: it should *only* be used in + * test code. + * + * Tests using this function \em MUST run tests with and without \a + * force_creation set. */ +void grpc_subchannel_index_test_only_set_force_creation(bool force_creation); + #endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_SUBCHANNEL_INDEX_H */ |