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

Side by Side Diff: chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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 "chrome/browser/sync/glue/bookmark_data_type_controller.h" 5 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 14 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
15 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" 15 #include "chrome/browser/bookmarks/chrome_bookmark_client.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/history/history_service.h" 17 #include "chrome/browser/history/history_service.h"
18 #include "chrome/browser/history/history_service_factory.h" 18 #include "chrome/browser/history/history_service_factory.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" 20 #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
21 #include "chrome/browser/sync/profile_sync_service_mock.h" 21 #include "chrome/browser/sync/profile_sync_service_mock.h"
22 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
23 #include "chrome/test/base/profile_mock.h" 23 #include "chrome/test/base/profile_mock.h"
24 #include "components/bookmarks/core/browser/bookmark_model.h" 24 #include "components/bookmarks/browser/bookmark_model.h"
25 #include "components/bookmarks/core/test/bookmark_test_helpers.h" 25 #include "components/bookmarks/test/bookmark_test_helpers.h"
26 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv ice.h" 26 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv ice.h"
27 #include "components/sync_driver/change_processor_mock.h" 27 #include "components/sync_driver/change_processor_mock.h"
28 #include "components/sync_driver/data_type_controller_mock.h" 28 #include "components/sync_driver/data_type_controller_mock.h"
29 #include "components/sync_driver/model_associator_mock.h" 29 #include "components/sync_driver/model_associator_mock.h"
30 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/notification_service.h" 31 #include "content/public/browser/notification_service.h"
32 #include "content/public/test/test_browser_thread.h" 32 #include "content/public/test/test_browser_thread.h"
33 #include "sync/api/sync_error.h" 33 #include "sync/api/sync_error.h"
34 #include "testing/gmock/include/gmock/gmock.h" 34 #include "testing/gmock/include/gmock/gmock.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 WillOnce(InvokeWithoutArgs(bookmark_dtc_.get(), 342 WillOnce(InvokeWithoutArgs(bookmark_dtc_.get(),
343 &BookmarkDataTypeController::Stop)); 343 &BookmarkDataTypeController::Stop));
344 SetStopExpectations(); 344 SetStopExpectations();
345 345
346 EXPECT_CALL(start_callback_, Run(DataTypeController::OK, _, _)); 346 EXPECT_CALL(start_callback_, Run(DataTypeController::OK, _, _));
347 Start(); 347 Start();
348 // This should cause bookmark_dtc_->Stop() to be called. 348 // This should cause bookmark_dtc_->Stop() to be called.
349 bookmark_dtc_->OnSingleDatatypeUnrecoverableError(FROM_HERE, "Test"); 349 bookmark_dtc_->OnSingleDatatypeUnrecoverableError(FROM_HERE, "Test");
350 base::RunLoop().RunUntilIdle(); 350 base::RunLoop().RunUntilIdle();
351 } 351 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/bookmark_data_type_controller.cc ('k') | chrome/browser/sync/glue/bookmark_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698