Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/bookmarks/core/browser/bookmark_expanded_state_tracker.h" | 5 #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h" |
|
tfarina
2014/05/18 21:23:48
Your checkout is still not up to date.
I have al
| |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
| 10 #include "components/bookmarks/core/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.h" |
| 11 #include "components/bookmarks/core/test/bookmark_test_helpers.h" | 11 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 12 #include "content/public/test/test_browser_thread_bundle.h" | 12 #include "content/public/test/test_browser_thread_bundle.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 class BookmarkExpandedStateTrackerTest : public testing::Test { | 15 class BookmarkExpandedStateTrackerTest : public testing::Test { |
| 16 public: | 16 public: |
| 17 BookmarkExpandedStateTrackerTest(); | 17 BookmarkExpandedStateTrackerTest(); |
| 18 | 18 |
| 19 virtual void SetUp() OVERRIDE; | 19 virtual void SetUp() OVERRIDE; |
| 20 virtual void TearDown() OVERRIDE; | 20 virtual void TearDown() OVERRIDE; |
| 21 | 21 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 BookmarkExpandedStateTracker::Nodes nodes; | 82 BookmarkExpandedStateTracker::Nodes nodes; |
| 83 nodes.insert(n1); | 83 nodes.insert(n1); |
| 84 tracker->SetExpandedNodes(nodes); | 84 tracker->SetExpandedNodes(nodes); |
| 85 // Verify that the node is present. | 85 // Verify that the node is present. |
| 86 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); | 86 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); |
| 87 // Call remove all. | 87 // Call remove all. |
| 88 model->RemoveAll(); | 88 model->RemoveAll(); |
| 89 // Verify node is not present. | 89 // Verify node is not present. |
| 90 EXPECT_TRUE(tracker->GetExpandedNodes().empty()); | 90 EXPECT_TRUE(tracker->GetExpandedNodes().empty()); |
| 91 } | 91 } |
| OLD | NEW |