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

Side by Side Diff: chrome/browser/history/top_sites_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/history/top_sites_cache.h" 21 #include "chrome/browser/history/top_sites_cache.h"
22 #include "chrome/browser/history/top_sites_database.h" 22 #include "chrome/browser/history/top_sites_database.h"
23 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" 23 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h"
24 #include "chrome/common/chrome_constants.h" 24 #include "chrome/common/chrome_constants.h"
25 #include "chrome/common/chrome_notification_types.h" 25 #include "chrome/common/chrome_notification_types.h"
26 #include "chrome/common/chrome_paths.h" 26 #include "chrome/common/chrome_paths.h"
27 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
28 #include "chrome/test/base/testing_profile.h" 28 #include "chrome/test/base/testing_profile.h"
29 #include "chrome/test/base/ui_test_utils.h" 29 #include "chrome/test/base/ui_test_utils.h"
30 #include "chrome/tools/profiles/thumbnail-inl.h" 30 #include "chrome/tools/profiles/thumbnail-inl.h"
31 #include "content/test/test_browser_thread.h" 31 #include "content/public/test/test_browser_thread.h"
32 #include "googleurl/src/gurl.h" 32 #include "googleurl/src/gurl.h"
33 #include "grit/chromium_strings.h" 33 #include "grit/chromium_strings.h"
34 #include "grit/generated_resources.h" 34 #include "grit/generated_resources.h"
35 #include "grit/locale_settings.h" 35 #include "grit/locale_settings.h"
36 #include "testing/gtest/include/gtest/gtest.h" 36 #include "testing/gtest/include/gtest/gtest.h"
37 #include "third_party/skia/include/core/SkBitmap.h" 37 #include "third_party/skia/include/core/SkBitmap.h"
38 #include "ui/base/l10n/l10n_util.h" 38 #include "ui/base/l10n/l10n_util.h"
39 #include "ui/gfx/codec/jpeg_codec.h" 39 #include "ui/gfx/codec/jpeg_codec.h"
40 40
41 using content::BrowserThread; 41 using content::BrowserThread;
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 ui_test_utils::WindowedNotificationObserver observer( 1238 ui_test_utils::WindowedNotificationObserver observer(
1239 chrome::NOTIFICATION_TOP_SITES_LOADED, 1239 chrome::NOTIFICATION_TOP_SITES_LOADED,
1240 content::Source<Profile>(profile())); 1240 content::Source<Profile>(profile()));
1241 profile()->CreateTopSites(); 1241 profile()->CreateTopSites();
1242 profile()->GetHistoryService(Profile::EXPLICIT_ACCESS)->UnloadBackend(); 1242 profile()->GetHistoryService(Profile::EXPLICIT_ACCESS)->UnloadBackend();
1243 profile()->BlockUntilHistoryProcessesPendingRequests(); 1243 profile()->BlockUntilHistoryProcessesPendingRequests();
1244 observer.Wait(); 1244 observer.Wait();
1245 } 1245 }
1246 1246
1247 } // namespace history 1247 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/shortcuts_backend_unittest.cc ('k') | chrome/browser/importer/importer_unittest_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698