Merge pull request #10474 from y-zeng/update_actions

Add UpdateActions to the interop client helper
pull/10465/merge
Yuchen Zeng 8 years ago committed by GitHub
commit b05e1a8ff0
  1. 3
      test/cpp/interop/client.cc
  2. 3
      test/cpp/interop/client_helper.cc
  3. 4
      test/cpp/interop/client_helper.h

@ -99,6 +99,7 @@ DEFINE_bool(do_not_abort_on_transient_failures, false,
using grpc::testing::CreateChannelForTestCase;
using grpc::testing::GetServiceAccountJsonKey;
using grpc::testing::UpdateActions;
int main(int argc, char** argv) {
grpc::testing::InitTest(&argc, &argv, true);
@ -165,6 +166,8 @@ int main(int argc, char** argv) {
// actions["cacheable_unary"] =
// std::bind(&grpc::testing::InteropClient::DoCacheableUnary, &client);
UpdateActions(&actions);
if (FLAGS_test_case == "all") {
for (const auto& action : actions) {
action.second();

@ -89,6 +89,9 @@ grpc::string GetOauth2AccessToken() {
return access_token;
}
void UpdateActions(
std::unordered_map<grpc::string, std::function<bool()>>* actions) {}
std::shared_ptr<Channel> CreateChannelForTestCase(
const grpc::string& test_case) {
GPR_ASSERT(FLAGS_server_port);

@ -35,6 +35,7 @@
#define GRPC_TEST_CPP_INTEROP_CLIENT_HELPER_H
#include <memory>
#include <unordered_map>
#include <grpc++/channel.h>
@ -47,6 +48,9 @@ grpc::string GetServiceAccountJsonKey();
grpc::string GetOauth2AccessToken();
void UpdateActions(
std::unordered_map<grpc::string, std::function<bool()>>* actions);
std::shared_ptr<Channel> CreateChannelForTestCase(
const grpc::string& test_case);

Loading…
Cancel
Save