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

Side by Side Diff: components/sync_bookmarks/bookmark_data_type_controller_unittest.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_bookmarks/bookmark_data_type_controller.h" 5 #include "components/sync_bookmarks/bookmark_data_type_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "components/bookmarks/browser/bookmark_model.h" 16 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/bookmarks/test/bookmark_test_helpers.h" 17 #include "components/bookmarks/test/bookmark_test_helpers.h"
18 #include "components/bookmarks/test/test_bookmark_client.h" 18 #include "components/bookmarks/test/test_bookmark_client.h"
19 #include "components/history/core/browser/history_service.h" 19 #include "components/history/core/browser/history_service.h"
20 #include "components/prefs/testing_pref_service.h" 20 #include "components/prefs/testing_pref_service.h"
21 #include "components/sync/api/sync_error.h"
22 #include "components/sync/driver/change_processor_mock.h" 21 #include "components/sync/driver/change_processor_mock.h"
23 #include "components/sync/driver/data_type_controller_mock.h" 22 #include "components/sync/driver/data_type_controller_mock.h"
24 #include "components/sync/driver/fake_sync_client.h" 23 #include "components/sync/driver/fake_sync_client.h"
25 #include "components/sync/driver/fake_sync_service.h" 24 #include "components/sync/driver/fake_sync_service.h"
26 #include "components/sync/driver/model_associator_mock.h" 25 #include "components/sync/driver/model_associator_mock.h"
27 #include "components/sync/driver/sync_api_component_factory_mock.h" 26 #include "components/sync/driver/sync_api_component_factory_mock.h"
27 #include "components/sync/model/sync_error.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using bookmarks::BookmarkModel; 31 using bookmarks::BookmarkModel;
32 using sync_bookmarks::BookmarkDataTypeController; 32 using sync_bookmarks::BookmarkDataTypeController;
33 using syncer::ChangeProcessorMock; 33 using syncer::ChangeProcessorMock;
34 using syncer::DataTypeController; 34 using syncer::DataTypeController;
35 using syncer::ModelAssociatorMock; 35 using syncer::ModelAssociatorMock;
36 using syncer::ModelLoadCallbackMock; 36 using syncer::ModelLoadCallbackMock;
37 using syncer::StartCallbackMock; 37 using syncer::StartCallbackMock;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 SetStopExpectations(); 290 SetStopExpectations();
291 291
292 EXPECT_EQ(DataTypeController::NOT_RUNNING, bookmark_dtc_->state()); 292 EXPECT_EQ(DataTypeController::NOT_RUNNING, bookmark_dtc_->state());
293 293
294 EXPECT_CALL(start_callback_, Run(DataTypeController::OK, _, _)); 294 EXPECT_CALL(start_callback_, Run(DataTypeController::OK, _, _));
295 Start(); 295 Start();
296 EXPECT_EQ(DataTypeController::RUNNING, bookmark_dtc_->state()); 296 EXPECT_EQ(DataTypeController::RUNNING, bookmark_dtc_->state());
297 bookmark_dtc_->Stop(); 297 bookmark_dtc_->Stop();
298 EXPECT_EQ(DataTypeController::NOT_RUNNING, bookmark_dtc_->state()); 298 EXPECT_EQ(DataTypeController::NOT_RUNNING, bookmark_dtc_->state());
299 } 299 }
OLDNEW
« no previous file with comments | « components/sync_bookmarks/bookmark_change_processor.h ('k') | components/sync_bookmarks/bookmark_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698