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

Side by Side Diff: components/sync/engine_impl/syncer_util_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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 "components/sync/engine_impl/syncer_util.h" 5 #include "components/sync/engine_impl/syncer_util.h"
6 6
7 #include <stdint.h>
8
9 #include <memory> 7 #include <memory>
10 8
11 #include "base/rand_util.h" 9 #include "base/rand_util.h"
12 #include "components/sync/base/unique_position.h" 10 #include "components/sync/base/unique_position.h"
13 #include "components/sync/core/test/test_entry_factory.h" 11 #include "components/sync/core/test/test_entry_factory.h"
14 #include "components/sync/protocol/sync.pb.h" 12 #include "components/sync/protocol/sync.pb.h"
15 #include "components/sync/syncable/mutable_entry.h"
16 #include "components/sync/syncable/syncable_write_transaction.h" 13 #include "components/sync/syncable/syncable_write_transaction.h"
17 #include "components/sync/test/engine/test_directory_setter_upper.h" 14 #include "components/sync/test/engine/test_directory_setter_upper.h"
18 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
19 16
20 namespace syncer { 17 namespace syncer {
21 18
22 class GetUpdatePositionTest : public ::testing::Test { 19 class GetUpdatePositionTest : public ::testing::Test {
23 public: 20 public:
24 void SetUp() override { 21 void SetUp() override {
25 dir_maker_.SetUp(); 22 dir_maker_.SetUp();
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 EXPECT_FALSE(UniquePosition::IsValidSuffix(target.GetUniqueBookmarkTag())); 218 EXPECT_FALSE(UniquePosition::IsValidSuffix(target.GetUniqueBookmarkTag()));
222 EXPECT_FALSE(target.GetServerUniquePosition().IsValid()); 219 EXPECT_FALSE(target.GetServerUniquePosition().IsValid());
223 UpdateServerFieldsFromUpdate(&target, invalid_update, "name"); 220 UpdateServerFieldsFromUpdate(&target, invalid_update, "name");
224 221
225 // After update, target has valid bookmark tag and unique position. 222 // After update, target has valid bookmark tag and unique position.
226 EXPECT_TRUE(UniquePosition::IsValidSuffix(target.GetUniqueBookmarkTag())); 223 EXPECT_TRUE(UniquePosition::IsValidSuffix(target.GetUniqueBookmarkTag()));
227 EXPECT_TRUE(target.GetServerUniquePosition().IsValid()); 224 EXPECT_TRUE(target.GetServerUniquePosition().IsValid());
228 } 225 }
229 226
230 } // namespace syncer 227 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/syncer_unittest.cc ('k') | components/sync/engine_impl/worker_entity_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698