OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
tim (not reviewing)
2012/03/15 06:21:10
don't see any changes to this file
akalin
2012/03/15 07:38:26
Right. I think it only shows up because the file
| |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "sync/protocol/test.pb.h" | 8 #include "sync/protocol/test.pb.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 TEST(SyncProtobufTest, TestUnknownFields) { | 13 TEST(SyncProtobufTest, TestUnknownFields) { |
(...skipping 12 matching lines...) Expand all Loading... | |
26 ASSERT_TRUE(a.ParseFromString(serialized)); | 26 ASSERT_TRUE(a.ParseFromString(serialized)); |
27 ASSERT_TRUE(a.foo()); | 27 ASSERT_TRUE(a.foo()); |
28 std::string serialized2; | 28 std::string serialized2; |
29 ASSERT_TRUE(a.SerializeToString(&serialized2)); | 29 ASSERT_TRUE(a.SerializeToString(&serialized2)); |
30 ASSERT_TRUE(b2.ParseFromString(serialized2)); | 30 ASSERT_TRUE(b2.ParseFromString(serialized2)); |
31 ASSERT_TRUE(b2.foo()); | 31 ASSERT_TRUE(b2.foo()); |
32 ASSERT_TRUE(b2.bar()); | 32 ASSERT_TRUE(b2.bar()); |
33 } | 33 } |
34 | 34 |
35 } // namespace | 35 } // namespace |
OLD | NEW |