Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2638)

Unified Diff: chrome/browser/sync/util/protobuf_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/util/nigori_unittest.cc ('k') | chrome/browser/sync/util/time.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/protobuf_unittest.cc
diff --git a/chrome/browser/sync/util/protobuf_unittest.cc b/chrome/browser/sync/util/protobuf_unittest.cc
deleted file mode 100644
index 4f654d5d77dc9c922448c7a65f3a9c762d6bcdea..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/util/protobuf_unittest.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <string>
-#include <vector>
-
-#include "sync/protocol/test.pb.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-TEST(SyncProtobufTest, TestUnknownFields) {
- // This tests ensures that we retain unknown fields in protocol buffers by
- // serialising UnknownFieldsTestB, which is a superset of UnknownFieldsTestA,
- // and checking we get back to the same message after parsing/serialising via
- // UnknownFieldsTestA.
- sync_pb::UnknownFieldsTestA a;
- sync_pb::UnknownFieldsTestB b;
- sync_pb::UnknownFieldsTestB b2;
-
- b.set_foo(true);
- b.set_bar(true);
- std::string serialized;
- ASSERT_TRUE(b.SerializeToString(&serialized));
- ASSERT_TRUE(a.ParseFromString(serialized));
- ASSERT_TRUE(a.foo());
- std::string serialized2;
- ASSERT_TRUE(a.SerializeToString(&serialized2));
- ASSERT_TRUE(b2.ParseFromString(serialized2));
- ASSERT_TRUE(b2.foo());
- ASSERT_TRUE(b2.bar());
-}
-
-} // namespace
« no previous file with comments | « chrome/browser/sync/util/nigori_unittest.cc ('k') | chrome/browser/sync/util/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698