| 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 "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 Loading... |
| 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 } |
| OLD | NEW |