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

Side by Side Diff: components/sync/driver/glue/sync_backend_registrar_unittest.cc

Issue 2508003002: [Sync] Move ChangeProcessor to model/. (Closed)
Patch Set: Created 4 years, 1 month 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/driver/glue/sync_backend_registrar.h" 5 #include "components/sync/driver/glue/sync_backend_registrar.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "components/sync/driver/change_processor_mock.h"
15 #include "components/sync/driver/glue/browser_thread_model_worker.h" 14 #include "components/sync/driver/glue/browser_thread_model_worker.h"
16 #include "components/sync/engine/passive_model_worker.h" 15 #include "components/sync/engine/passive_model_worker.h"
16 #include "components/sync/model/change_processor_mock.h"
17 #include "components/sync/syncable/test_user_share.h" 17 #include "components/sync/syncable/test_user_share.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 namespace { 23 namespace {
24 24
25 using ::testing::_; 25 using ::testing::_;
26 using ::testing::InSequence; 26 using ::testing::InSequence;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 registrar()->ConfigureDataTypes(types_to_add, ModelTypeSet()); 265 registrar()->ConfigureDataTypes(types_to_add, ModelTypeSet());
266 EXPECT_EQ(ModelTypeSet(BOOKMARKS), newly_added_types); 266 EXPECT_EQ(ModelTypeSet(BOOKMARKS), newly_added_types);
267 EXPECT_EQ(types_to_add, registrar()->GetLastConfiguredTypes()); 267 EXPECT_EQ(types_to_add, registrar()->GetLastConfiguredTypes());
268 ExpectRoutingInfo( 268 ExpectRoutingInfo(
269 {{AUTOFILL, GROUP_NON_BLOCKING}, {BOOKMARKS, GROUP_NON_BLOCKING}}); 269 {{AUTOFILL, GROUP_NON_BLOCKING}, {BOOKMARKS, GROUP_NON_BLOCKING}});
270 } 270 }
271 271
272 } // namespace 272 } // namespace
273 273
274 } // namespace syncer 274 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_registrar.cc ('k') | components/sync/driver/sync_api_component_factory_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698