aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/parse_json.h
diff options
context:
space:
mode:
authorGravatar David Klempner <klempner@google.com>2016-05-19 13:50:16 -0700
committerGravatar David Klempner <klempner@google.com>2016-06-08 17:11:26 -0700
commite27d189f2165e904dbb3d61616edf3c643df71f0 (patch)
treed400400b9b1ecae740a3e352f2676fffca9744f7 /test/cpp/qps/parse_json.h
parentd861b13aff7481b4901ab012cfd51c5887b11a2e (diff)
Factor out json seriailzation code and move it into parse_json.
This is for the same reasons as ParseJson, that is so that we can limit the scope of the proto namespace differences between internal and external.
Diffstat (limited to 'test/cpp/qps/parse_json.h')
-rw-r--r--test/cpp/qps/parse_json.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/qps/parse_json.h b/test/cpp/qps/parse_json.h
index 42d7d22c53..ce1821f961 100644
--- a/test/cpp/qps/parse_json.h
+++ b/test/cpp/qps/parse_json.h
@@ -43,6 +43,9 @@ namespace testing {
void ParseJson(const grpc::string& json, const grpc::string& type,
GRPC_CUSTOM_MESSAGE* msg);
+grpc::string SerializeJson(const GRPC_CUSTOM_MESSAGE& msg,
+ const grpc::string& type);
+
} // testing
} // grpc