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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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.
4 4
5 #include "components/sync/engine_impl/apply_control_data_updates.h" 5 #include "components/sync/engine_impl/apply_control_data_updates.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 #include "components/sync/syncable/syncable_util.h" 27 #include "components/sync/syncable/syncable_util.h"
28 #include "components/sync/syncable/syncable_write_transaction.h" 28 #include "components/sync/syncable/syncable_write_transaction.h"
29 #include "components/sync/test/engine/fake_model_worker.h" 29 #include "components/sync/test/engine/fake_model_worker.h"
30 #include "components/sync/test/engine/test_directory_setter_upper.h" 30 #include "components/sync/test/engine/test_directory_setter_upper.h"
31 #include "components/sync/test/engine/test_id_factory.h" 31 #include "components/sync/test/engine/test_id_factory.h"
32 #include "components/sync/test/fake_sync_encryption_handler.h" 32 #include "components/sync/test/fake_sync_encryption_handler.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 34
35 namespace syncer { 35 namespace syncer {
36 36
37 using syncable::MutableEntry; 37 using syncer::syncable::MutableEntry;
38 using syncable::UNITTEST; 38 using syncer::syncable::UNITTEST;
39 using syncable::Id; 39 using syncer::syncable::Id;
40 40
41 class ApplyControlDataUpdatesTest : public ::testing::Test { 41 class ApplyControlDataUpdatesTest : public ::testing::Test {
42 public: 42 public:
43 protected: 43 protected:
44 ApplyControlDataUpdatesTest() {} 44 ApplyControlDataUpdatesTest() {}
45 ~ApplyControlDataUpdatesTest() override {} 45 ~ApplyControlDataUpdatesTest() override {}
46 46
47 void SetUp() override { 47 void SetUp() override {
48 dir_maker_.SetUp(); 48 dir_maker_.SetUp();
49 entry_factory_.reset(new TestEntryFactory(directory())); 49 entry_factory_.reset(new TestEntryFactory(directory()));
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 ApplyControlDataUpdates(directory()); 969 ApplyControlDataUpdates(directory());
970 970
971 // After applying the updates NIGORI should be marked as having its 971 // After applying the updates NIGORI should be marked as having its
972 // initial sync completed. 972 // initial sync completed.
973 EXPECT_TRUE(directory()->InitialSyncEndedForType(NIGORI)); 973 EXPECT_TRUE(directory()->InitialSyncEndedForType(NIGORI));
974 // Verify that there is no side effect on another control type. 974 // Verify that there is no side effect on another control type.
975 EXPECT_FALSE(directory()->InitialSyncEndedForType(EXPERIMENTS)); 975 EXPECT_FALSE(directory()->InitialSyncEndedForType(EXPERIMENTS));
976 } 976 }
977 977
978 } // namespace syncer 978 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698