aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/util/internal/json_objectwriter_test.cc
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2015-06-15 21:42:57 -0700
committerFeng Xiao <xfxyjwf@gmail.com>2015-06-17 11:19:46 -0700
commit818c5eee08840355d70d2f3bdf1a2f17986a5e70 (patch)
treee6db0b1344385f8c48820c58d7297f653bff39f7 /src/google/protobuf/util/internal/json_objectwriter_test.cc
parente96ff30120a3834f7d1e31e43e591bf7cfbd731f (diff)
downloadprotobuf-818c5eee08840355d70d2f3bdf1a2f17986a5e70.tar.gz
protobuf-818c5eee08840355d70d2f3bdf1a2f17986a5e70.tar.bz2
protobuf-818c5eee08840355d70d2f3bdf1a2f17986a5e70.zip
Fix broken builds.
Diffstat (limited to 'src/google/protobuf/util/internal/json_objectwriter_test.cc')
-rw-r--r--src/google/protobuf/util/internal/json_objectwriter_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/google/protobuf/util/internal/json_objectwriter_test.cc b/src/google/protobuf/util/internal/json_objectwriter_test.cc
index c8fff8b3..df9a133e 100644
--- a/src/google/protobuf/util/internal/json_objectwriter_test.cc
+++ b/src/google/protobuf/util/internal/json_objectwriter_test.cc
@@ -31,6 +31,7 @@
#include <google/protobuf/util/internal/json_objectwriter.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
+#include <google/protobuf/util/internal/utility.h>
#include <gtest/gtest.h>
namespace google {
@@ -152,8 +153,8 @@ TEST_F(JsonObjectWriterTest, RenderPrimitives) {
->EndObject();
EXPECT_EQ(
"{\"bool\":true,"
- "\"double\":1.7976931348623157e+308,"
- "\"float\":3.4028235e+38,"
+ "\"double\":" + ValueAsString<double>(1.7976931348623157e+308) + ","
+ "\"float\":" + ValueAsString<float>(3.4028235e+38) + ","
"\"int\":-2147483648,"
"\"long\":\"-9223372036854775808\","
"\"bytes\":\"YWJyYWNhZGFicmE=\","