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

Unified Diff: components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc

Issue 961683002: Move ManagedBookmarksTracker from policy/core/browser to bookmarks/managed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add back to policy DEPS Created 5 years, 9 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
« no previous file with comments | « components/bookmarks/managed/managed_bookmarks_tracker.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
diff --git a/components/policy/core/browser/managed_bookmarks_tracker_unittest.cc b/components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
similarity index 97%
rename from components/policy/core/browser/managed_bookmarks_tracker_unittest.cc
rename to components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
index cc7b287c552b29622464c0fc9b573575cf73e734..67c89b76c95fb035a82a2fa45aee061dee529314 100644
--- a/components/policy/core/browser/managed_bookmarks_tracker_unittest.cc
+++ b/components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/policy/core/browser/managed_bookmarks_tracker.h"
+#include "components/bookmarks/managed/managed_bookmarks_tracker.h"
#include "base/bind.h"
#include "base/files/file_path.h"
@@ -24,13 +24,10 @@
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
-using bookmarks::BookmarkModel;
-using bookmarks::BookmarkNode;
-using bookmarks::BookmarkPermanentNode;
using testing::Mock;
using testing::_;
-namespace policy {
+namespace bookmarks {
class ManagedBookmarksTrackerTest : public testing::Test {
public:
@@ -52,7 +49,7 @@ class ManagedBookmarksTrackerTest : public testing::Test {
void CreateModel(bool is_supervised) {
// Simulate the creation of the managed node by the BookmarkClient.
BookmarkPermanentNode* managed_node = new BookmarkPermanentNode(100);
- policy::ManagedBookmarksTracker::LoadInitial(
+ ManagedBookmarksTracker::LoadInitial(
managed_node,
prefs_.GetList(ManagedBookmarksTracker::GetPrefName(is_supervised)),
101);
@@ -344,4 +341,4 @@ TEST_F(ManagedBookmarksTrackerTest, RemoveAllUserBookmarksDoesntRemoveManaged) {
Mock::VerifyAndClearExpectations(&observer_);
}
-} // namespace policy
+} // namespace bookmarks
« no previous file with comments | « components/bookmarks/managed/managed_bookmarks_tracker.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698