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

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

Issue 11959042: bookmarks: Forward declare some classes in header files when possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/browser/bookmarks/recently_used_folders_combo_model.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/bookmarks/recently_used_folders_combo_model.h" 5 #include "chrome/browser/bookmarks/recently_used_folders_combo_model.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
11 #include "content/public/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 using content::BrowserThread; 15 using content::BrowserThread;
15 16
16 class RecentlyUsedFoldersComboModelTest : public testing::Test { 17 class RecentlyUsedFoldersComboModelTest : public testing::Test {
17 public: 18 public:
18 RecentlyUsedFoldersComboModelTest(); 19 RecentlyUsedFoldersComboModelTest();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 bookmark_model->bookmark_bar_node(), 0, ASCIIToUTF16("a"), 56 bookmark_model->bookmark_bar_node(), 0, ASCIIToUTF16("a"),
56 GURL("http://a")); 57 GURL("http://a"));
57 RecentlyUsedFoldersComboModel model(bookmark_model, new_node); 58 RecentlyUsedFoldersComboModel model(bookmark_model, new_node);
58 std::set<const BookmarkNode*> nodes; 59 std::set<const BookmarkNode*> nodes;
59 for (int i = 0; i < model.GetItemCount(); ++i) { 60 for (int i = 0; i < model.GetItemCount(); ++i) {
60 const BookmarkNode* node = model.GetNodeAt(i); 61 const BookmarkNode* node = model.GetNodeAt(i);
61 EXPECT_EQ(0u, nodes.count(node)); 62 EXPECT_EQ(0u, nodes.count(node));
62 nodes.insert(node); 63 nodes.insert(node);
63 } 64 }
64 } 65 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/recently_used_folders_combo_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698