Przeglądaj źródła

Add iostream in message.cc. Remove unused in coded_stream_unittest.cc

jieluo@google.com 11 lat temu
rodzic
commit
3b547d3526

+ 0 - 6
src/google/protobuf/io/coded_stream_unittest.cc

@@ -144,10 +144,6 @@ uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize];
 // checks.
 // checks.
 const int kBlockSizes[] = {1, 2, 3, 5, 7, 13, 32, 1024};
 const int kBlockSizes[] = {1, 2, 3, 5, 7, 13, 32, 1024};
 
 
-// In several ReadCord test functions, we either clear the Cord before ReadCord
-// calls or not.
-const bool kResetCords[] = {false, true};
-
 // -------------------------------------------------------------------
 // -------------------------------------------------------------------
 // Varint tests.
 // Varint tests.
 
 
@@ -877,8 +873,6 @@ TEST_F(CodedStreamTest,
 
 
 const char kSkipTestBytes[] =
 const char kSkipTestBytes[] =
   "<Before skipping><To be skipped><After skipping>";
   "<Before skipping><To be skipped><After skipping>";
-const char kSkipOutputTestBytes[] =
-  "-----------------<To be skipped>----------------";
 
 
 TEST_1D(CodedStreamTest, SkipInput, kBlockSizes) {
 TEST_1D(CodedStreamTest, SkipInput, kBlockSizes) {
   memcpy(buffer_, kSkipTestBytes, sizeof(kSkipTestBytes));
   memcpy(buffer_, kSkipTestBytes, sizeof(kSkipTestBytes));

+ 1 - 0
src/google/protobuf/message.cc

@@ -32,6 +32,7 @@
 //  Based on original Protocol Buffers design by
 //  Based on original Protocol Buffers design by
 //  Sanjay Ghemawat, Jeff Dean, and others.
 //  Sanjay Ghemawat, Jeff Dean, and others.
 
 
+#include <iostream>
 #include <stack>
 #include <stack>
 #include <google/protobuf/stubs/hash.h>
 #include <google/protobuf/stubs/hash.h>