| OLD | NEW |
| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/memory/scoped_temp_dir.h" | |
| 9 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/scoped_temp_dir.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/history/history_backend.h" | 13 #include "chrome/browser/history/history_backend.h" |
| 14 #include "chrome/browser/history/history_database.h" | 14 #include "chrome/browser/history/history_database.h" |
| 15 #include "chrome/browser/history/history_marshaling.h" | 15 #include "chrome/browser/history/history_marshaling.h" |
| 16 #include "chrome/browser/history/history_notifications.h" | 16 #include "chrome/browser/history/history_notifications.h" |
| 17 #include "chrome/browser/history/history_unittest_base.h" | 17 #include "chrome/browser/history/history_unittest_base.h" |
| 18 #include "chrome/browser/history/top_sites.h" | 18 #include "chrome/browser/history/top_sites.h" |
| 19 #include "chrome/browser/history/top_sites_backend.h" | 19 #include "chrome/browser/history/top_sites_backend.h" |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 WaitForTopSites(); | 1334 WaitForTopSites(); |
| 1335 EXPECT_FALSE(IsTopSitesLoaded()); | 1335 EXPECT_FALSE(IsTopSitesLoaded()); |
| 1336 | 1336 |
| 1337 // Load history, which should make TopSites finish loading too. | 1337 // Load history, which should make TopSites finish loading too. |
| 1338 profile()->CreateHistoryService(false, false); | 1338 profile()->CreateHistoryService(false, false); |
| 1339 profile()->BlockUntilTopSitesLoaded(); | 1339 profile()->BlockUntilTopSitesLoaded(); |
| 1340 EXPECT_TRUE(IsTopSitesLoaded()); | 1340 EXPECT_TRUE(IsTopSitesLoaded()); |
| 1341 } | 1341 } |
| 1342 | 1342 |
| 1343 } // namespace history | 1343 } // namespace history |
| OLD | NEW |