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

Side by Side Diff: components/sync/base/attachment_id_proto_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.
4 4
5 #include "sync/internal_api/public/base/attachment_id_proto.h" 5 #include "components/sync/base/attachment_id_proto.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "testing/gmock/include/gmock/gmock-matchers.h" 8 #include "testing/gmock/include/gmock/gmock-matchers.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 typedef testing::Test AttachmentIdProtoTest; 13 typedef testing::Test AttachmentIdProtoTest;
14 14
15 // Verify that that we generate a proto with a properly formatted unique_id 15 // Verify that that we generate a proto with a properly formatted unique_id
(...skipping 24 matching lines...) Expand all
40 sync_pb::AttachmentMetadata metadata = CreateAttachmentMetadata(ids); 40 sync_pb::AttachmentMetadata metadata = CreateAttachmentMetadata(ids);
41 ASSERT_EQ(3, metadata.record_size()); 41 ASSERT_EQ(3, metadata.record_size());
42 for (int i = 0; i < metadata.record_size(); ++i) { 42 for (int i = 0; i < metadata.record_size(); ++i) {
43 EXPECT_EQ(ids.Get(i).SerializeAsString(), 43 EXPECT_EQ(ids.Get(i).SerializeAsString(),
44 metadata.record(i).id().SerializeAsString()); 44 metadata.record(i).id().SerializeAsString());
45 EXPECT_TRUE(metadata.record(i).is_on_server()); 45 EXPECT_TRUE(metadata.record(i).is_on_server());
46 } 46 }
47 } 47 }
48 48
49 } // namespace syncer 49 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/base/attachment_id_proto.cc ('k') | components/sync/base/cancelation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698