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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/bookmarks/bookmark_expanded_state_tracker.h" 5 #include "chrome/browser/bookmarks/bookmark_expanded_state_tracker.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "content/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using content::BrowserThread; 13 using content::BrowserThread;
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;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 nodes.insert(n1); 69 nodes.insert(n1);
70 tracker->SetExpandedNodes(nodes); 70 tracker->SetExpandedNodes(nodes);
71 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); 71 EXPECT_EQ(nodes, tracker->GetExpandedNodes());
72 72
73 // Remove the folder, which should remove it from the list of expanded nodes. 73 // Remove the folder, which should remove it from the list of expanded nodes.
74 model->Remove(model->bookmark_bar_node(), 0); 74 model->Remove(model->bookmark_bar_node(), 0);
75 nodes.erase(n1); 75 nodes.erase(n1);
76 n1 = NULL; 76 n1 = NULL;
77 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); 77 EXPECT_EQ(nodes, tracker->GetExpandedNodes());
78 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698