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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 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_browser_process_test.h"
9 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
10 #include "chrome/test/testing_browser_process_test.h"
11 #include "content/browser/browser_thread.h" 11 #include "content/browser/browser_thread.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 class BookmarkExpandedStateTrackerTest : public TestingBrowserProcessTest { 14 class BookmarkExpandedStateTrackerTest : public TestingBrowserProcessTest {
15 public: 15 public:
16 BookmarkExpandedStateTrackerTest(); 16 BookmarkExpandedStateTrackerTest();
17 17
18 virtual void SetUp() OVERRIDE; 18 virtual void SetUp() OVERRIDE;
19 virtual void TearDown() OVERRIDE; 19 virtual void TearDown() OVERRIDE;
20 20
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 nodes.insert(n1); 68 nodes.insert(n1);
69 tracker->SetExpandedNodes(nodes); 69 tracker->SetExpandedNodes(nodes);
70 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); 70 EXPECT_EQ(nodes, tracker->GetExpandedNodes());
71 71
72 // Remove the folder, which should remove it from the list of expanded nodes. 72 // Remove the folder, which should remove it from the list of expanded nodes.
73 model->Remove(model->bookmark_bar_node(), 0); 73 model->Remove(model->bookmark_bar_node(), 0);
74 nodes.erase(n1); 74 nodes.erase(n1);
75 n1 = NULL; 75 n1 = NULL;
76 EXPECT_EQ(nodes, tracker->GetExpandedNodes()); 76 EXPECT_EQ(nodes, tracker->GetExpandedNodes());
77 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698