OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/l10n_util.h" | 5 #include "app/l10n_util.h" |
6 #include "base/scoped_temp_dir.h" | 6 #include "base/scoped_temp_dir.h" |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/history/top_sites.h" | 9 #include "chrome/browser/history/top_sites.h" |
9 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/browser/dom_ui/most_visited_handler.h" | 11 #include "chrome/browser/dom_ui/most_visited_handler.h" |
11 #include "chrome/browser/history/history_marshaling.h" | 12 #include "chrome/browser/history/history_marshaling.h" |
12 #include "chrome/browser/history/top_sites_database.h" | 13 #include "chrome/browser/history/top_sites_database.h" |
13 #include "chrome/browser/history/history_notifications.h" | 14 #include "chrome/browser/history/history_notifications.h" |
14 #include "chrome/test/testing_profile.h" | 15 #include "chrome/test/testing_profile.h" |
15 #include "chrome/tools/profiles/thumbnail-inl.h" | 16 #include "chrome/tools/profiles/thumbnail-inl.h" |
16 #include "gfx/codec/jpeg_codec.h" | 17 #include "gfx/codec/jpeg_codec.h" |
17 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
(...skipping 1294 matching lines...) Loading... |
1312 | 1313 |
1313 top_sites().RemoveBlacklistedURL(store_url); | 1314 top_sites().RemoveBlacklistedURL(store_url); |
1314 EXPECT_EQ(6, top_sites().GetIndexForChromeStore(pages)); | 1315 EXPECT_EQ(6, top_sites().GetIndexForChromeStore(pages)); |
1315 | 1316 |
1316 top_sites().AddPinnedURL(GURL("http://bbc.com"), 2); | 1317 top_sites().AddPinnedURL(GURL("http://bbc.com"), 2); |
1317 // All pinned - can't add store. | 1318 // All pinned - can't add store. |
1318 EXPECT_EQ(-1, top_sites().GetIndexForChromeStore(pages)); | 1319 EXPECT_EQ(-1, top_sites().GetIndexForChromeStore(pages)); |
1319 } | 1320 } |
1320 | 1321 |
1321 } // namespace history | 1322 } // namespace history |
OLD | NEW |