From 91d8f0b5a846553ed11d0908129aaad116f63be4 Mon Sep 17 00:00:00 2001
From: Guantao Liu <guantaol@google.com>
Date: Fri, 14 Jul 2017 18:33:30 -0700
Subject: [PATCH] Added the missing header file and fixed a syntax error.

---
 test/cpp/qps/driver.cc    | 3 +--
 test/cpp/qps/qps_worker.h | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc
index 88d4d52abc..4458e389e7 100644
--- a/test/cpp/qps/driver.cc
+++ b/test/cpp/qps/driver.cc
@@ -285,8 +285,7 @@ std::unique_ptr<ScenarioResult> RunScenario(
     if (!servers[i].stream->Read(&init_status)) {
       gpr_log(GPR_ERROR, "Server %zu did not yield initial status", i);
     }
-    if (qps_server_target_override != NULL &&
-        strlen(qps_server_target_override) > 0) {
+    if (qps_server_target_override.length() > 0) {
       // overriding the qps server target only works if there is 1 server
       GPR_ASSERT(num_servers == 1);
       client_config.add_server_targets(qps_server_target_override);
diff --git a/test/cpp/qps/qps_worker.h b/test/cpp/qps/qps_worker.h
index 32ff98da9b..5c1d1a8ae6 100644
--- a/test/cpp/qps/qps_worker.h
+++ b/test/cpp/qps/qps_worker.h
@@ -22,6 +22,7 @@
 #include <memory>
 
 #include <grpc/support/atm.h>
+#include <grpc++/support/config.h>
 
 namespace grpc {
 
-- 
GitLab