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

Side by Side Diff: components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bookmarks/browser/bookmark_expanded_state_tracker.h" 5 #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/testing_pref_service.h"
12 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
13 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
14 #include "components/bookmarks/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
15 #include "components/bookmarks/common/bookmark_pref_names.h" 13 #include "components/bookmarks/common/bookmark_pref_names.h"
16 #include "components/bookmarks/test/bookmark_test_helpers.h" 14 #include "components/bookmarks/test/bookmark_test_helpers.h"
17 #include "components/bookmarks/test/test_bookmark_client.h" 15 #include "components/bookmarks/test/test_bookmark_client.h"
16 #include "components/prefs/pref_registry_simple.h"
17 #include "components/prefs/testing_pref_service.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace bookmarks { 20 namespace bookmarks {
21 21
22 class BookmarkExpandedStateTrackerTest : public testing::Test { 22 class BookmarkExpandedStateTrackerTest : public testing::Test {
23 public: 23 public:
24 BookmarkExpandedStateTrackerTest(); 24 BookmarkExpandedStateTrackerTest();
25 ~BookmarkExpandedStateTrackerTest() override; 25 ~BookmarkExpandedStateTrackerTest() override;
26 26
27 protected: 27 protected:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 tracker->SetExpandedNodes(nodes); 93 tracker->SetExpandedNodes(nodes);
94 // Verify that the node is present. 94 // Verify that the node is present.
95 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); 95 EXPECT_EQ(nodes, tracker->GetExpandedNodes());
96 // Call remove all. 96 // Call remove all.
97 model_->RemoveAllUserBookmarks(); 97 model_->RemoveAllUserBookmarks();
98 // Verify node is not present. 98 // Verify node is not present.
99 EXPECT_TRUE(tracker->GetExpandedNodes().empty()); 99 EXPECT_TRUE(tracker->GetExpandedNodes().empty());
100 } 100 }
101 101
102 } // namespace bookmarks 102 } // namespace bookmarks
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_expanded_state_tracker.cc ('k') | components/bookmarks/browser/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698