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

Unified Diff: components/sync_bookmarks/bookmark_data_type_controller_unittest.cc

Issue 2185973003: [Offline Pages] Delete associated page along with bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing debug lines. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
diff --git a/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc b/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
index 8a19614129ec9ba6e8c6c6ede94248bd038bcd1a..1f4a28f20d7afdb601c3ba82c4906d3098c28f43 100644
--- a/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
+++ b/components/sync_bookmarks/bookmark_data_type_controller_unittest.cc
@@ -14,7 +14,9 @@
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/bookmarks/browser/bookmark_model.h"
+#include "components/bookmarks/browser/owned_bookmark_model_observer.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
+#include "components/bookmarks/test/mock_bookmark_model_observer.h"
#include "components/bookmarks/test/test_bookmark_client.h"
#include "components/history/core/browser/history_service.h"
#include "components/prefs/testing_pref_service.h"
@@ -90,7 +92,8 @@ class SyncBookmarkDataTypeControllerTest : public testing::Test,
void CreateBookmarkModel(BookmarkLoadPolicy bookmark_load_policy) {
bookmark_model_.reset(new BookmarkModel(
- base::WrapUnique(new bookmarks::TestBookmarkClient())));
+ base::WrapUnique(new bookmarks::TestBookmarkClient()),
+ base::WrapUnique(new bookmarks::OwnedBookmarkModelObserver())));
if (bookmark_load_policy == LOAD_MODEL) {
TestingPrefServiceSimple prefs;
bookmark_model_->Load(&prefs, base::FilePath(),
« chrome/test/base/testing_profile.cc ('K') | « components/offline_pages/offline_page_model_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698