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

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

Issue 14581004: bookmarks: Move recently_used_folders_combo_model* into c/b/ui/bookmarks/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 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/ui/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.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
13 #include "content/public/test/test_browser_thread.h" 13 #include "content/public/test/test_browser_thread.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const BookmarkNode* new_node = GetModel()->AddURL( 59 const BookmarkNode* new_node = GetModel()->AddURL(
60 GetModel()->bookmark_bar_node(), 0, ASCIIToUTF16("a"), 60 GetModel()->bookmark_bar_node(), 0, ASCIIToUTF16("a"),
61 GURL("http://a")); 61 GURL("http://a"));
62 RecentlyUsedFoldersComboModel model(GetModel(), new_node); 62 RecentlyUsedFoldersComboModel model(GetModel(), new_node);
63 std::set<string16> items; 63 std::set<string16> items;
64 for (int i = 0; i < model.GetItemCount(); ++i) { 64 for (int i = 0; i < model.GetItemCount(); ++i) {
65 if (!model.IsItemSeparatorAt(i)) 65 if (!model.IsItemSeparatorAt(i))
66 EXPECT_EQ(0u, items.count(model.GetItemAt(i))); 66 EXPECT_EQ(0u, items.count(model.GetItemAt(i)));
67 } 67 }
68 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698