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

Unified Diff: chrome/browser/instant/instant_browsertest.cc

Issue 10807047: Create content\public\test\test_utils.h to hold common test classes that are used by unit and brows… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/instant/instant_browsertest.cc
===================================================================
--- chrome/browser/instant/instant_browsertest.cc (revision 147577)
+++ chrome/browser/instant/instant_browsertest.cc (working copy)
@@ -63,7 +63,7 @@
TemplateURLService* model =
TemplateURLServiceFactory::GetForProfile(profile);
- ui_test_utils::WindowedNotificationObserver observer(
+ content::WindowedNotificationObserver observer(
chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
content::NotificationService::AllSources());
if (!model->loaded()) {
@@ -86,7 +86,7 @@
// Type a character to get instant to trigger and determine instant support.
void DetermineInstantSupport() {
- ui_test_utils::WindowedNotificationObserver observer(
+ content::WindowedNotificationObserver observer(
chrome::NOTIFICATION_INSTANT_SUPPORT_DETERMINED,
content::NotificationService::AllSources());
// "a" triggers the "about:" provider. "b" begins the "bing.com" keyword.
@@ -97,7 +97,7 @@
// Types "def" into the omnibox and waits for the preview to be shown.
void SearchAndWaitForPreviewToShow() {
- ui_test_utils::WindowedNotificationObserver observer(
+ content::WindowedNotificationObserver observer(
chrome::NOTIFICATION_INSTANT_CONTROLLER_SHOWN,
content::NotificationService::AllSources());
omnibox()->SetUserText(ASCIIToUTF16("def"));
@@ -588,7 +588,7 @@
EnableInstant();
SetupInstantProvider("instant.html");
- ui_test_utils::WindowedNotificationObserver instant_support_observer(
+ content::WindowedNotificationObserver instant_support_observer(
chrome::NOTIFICATION_INSTANT_SUPPORT_DETERMINED,
content::NotificationService::AllSources());
@@ -629,7 +629,7 @@
EnableInstant();
SetupInstantProvider("empty.html");
- ui_test_utils::WindowedNotificationObserver tab_closed_observer(
+ content::WindowedNotificationObserver tab_closed_observer(
content::NOTIFICATION_WEB_CONTENTS_DESTROYED,
content::NotificationService::AllSources());
@@ -655,7 +655,7 @@
omnibox()->SetUserText(UTF8ToUTF16(url.spec()));
EXPECT_FALSE(preview());
- ui_test_utils::WindowedNotificationObserver tab_closed_observer(
+ content::WindowedNotificationObserver tab_closed_observer(
content::NOTIFICATION_WEB_CONTENTS_DESTROYED,
content::NotificationService::AllSources());
@@ -757,7 +757,7 @@
EXPECT_FALSE(preview());
// Focusing the omnibox should cause instant to be preloaded.
- ui_test_utils::WindowedNotificationObserver instant_support_observer(
+ content::WindowedNotificationObserver instant_support_observer(
chrome::NOTIFICATION_INSTANT_SUPPORT_DETERMINED,
content::NotificationService::AllSources());
browser()->window()->GetLocationBar()->FocusLocation(false);
« no previous file with comments | « chrome/browser/infobars/infobars_browsertest.cc ('k') | chrome/browser/metrics/metrics_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698