summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/instant/instant_browsertest.cc')
-rw-r--r--chrome/browser/instant/instant_browsertest.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/chrome/browser/instant/instant_browsertest.cc b/chrome/browser/instant/instant_browsertest.cc
index b2e64cb..a42698d 100644
--- a/chrome/browser/instant/instant_browsertest.cc
+++ b/chrome/browser/instant/instant_browsertest.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/ui/omnibox/location_bar.h"
#include "chrome/browser/ui/omnibox/omnibox_view.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/in_process_browser_test.h"
#include "chrome/test/ui_test_utils.h"
@@ -51,7 +52,7 @@ class InstantTest : public InProcessBrowserTest {
if (!model->loaded()) {
model->Load();
ui_test_utils::WaitForNotification(
- NotificationType::TEMPLATE_URL_SERVICE_LOADED);
+ chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED);
}
ASSERT_TRUE(model->loaded());
@@ -123,7 +124,7 @@ class InstantTest : public InProcessBrowserTest {
ASSERT_NO_FATAL_FAILURE(FindLocationBar());
location_bar_->location_entry()->SetUserText(UTF8ToUTF16(text));
ui_test_utils::WaitForNotification(
- NotificationType::INSTANT_CONTROLLER_SHOWN);
+ chrome::NOTIFICATION_INSTANT_CONTROLLER_SHOWN);
}
const string16& GetSuggestion() const {
@@ -599,7 +600,7 @@ IN_PROC_BROWSER_TEST_F(InstantTest, MAYBE_SearchServerDoesntSupportInstant) {
// When the response comes back that the page doesn't support instant the tab
// should be closed.
- ui_test_utils::WaitForNotification(NotificationType::TAB_CLOSED);
+ ui_test_utils::WaitForNotification(content::NOTIFICATION_TAB_CLOSED);
EXPECT_FALSE(browser()->instant()->IsShowingInstant());
EXPECT_FALSE(browser()->instant()->is_displayable());
EXPECT_TRUE(browser()->instant()->is_active());
@@ -649,7 +650,7 @@ IN_PROC_BROWSER_TEST_F(InstantTest,
// When the response comes back that the page doesn't support instant the tab
// should be closed.
- ui_test_utils::WaitForNotification(NotificationType::TAB_CLOSED);
+ ui_test_utils::WaitForNotification(content::NOTIFICATION_TAB_CLOSED);
EXPECT_FALSE(browser()->instant()->IsShowingInstant());
EXPECT_FALSE(browser()->instant()->is_displayable());
// But because the omnibox is still open, instant should be active.
@@ -705,7 +706,7 @@ IN_PROC_BROWSER_TEST_F(InstantTest, HideOn403) {
ASSERT_FALSE(browser()->instant()->is_displayable());
// When instant sees the 403, it should close the tab.
- ui_test_utils::WaitForNotification(NotificationType::TAB_CLOSED);
+ ui_test_utils::WaitForNotification(content::NOTIFICATION_TAB_CLOSED);
ASSERT_FALSE(browser()->instant()->GetPreviewContents());
ASSERT_TRUE(browser()->instant()->is_active());
ASSERT_FALSE(browser()->instant()->is_displayable());
@@ -869,7 +870,7 @@ IN_PROC_BROWSER_TEST_F(InstantTest, DontCrashOnBlockedJS) {
ASSERT_NO_FATAL_FAILURE(SetupLocationBar());
// Wait for notification that the instant API has been determined.
ui_test_utils::WaitForNotification(
- NotificationType::INSTANT_SUPPORT_DETERMINED);
+ chrome::NOTIFICATION_INSTANT_SUPPORT_DETERMINED);
// As long as we get the notification we're good (the renderer didn't crash).
}
@@ -894,11 +895,11 @@ IN_PROC_BROWSER_TEST_F(InstantTest, DownloadOnEnter) {
// Wait for the load to fail (because instant disables downloads).
printf("1\n");
ui_test_utils::WaitForNotification(
- NotificationType::FAIL_PROVISIONAL_LOAD_WITH_ERROR);
+ content::NOTIFICATION_FAIL_PROVISIONAL_LOAD_WITH_ERROR);
printf("2\n");
ui_test_utils::WindowedNotificationObserver download_observer(
- NotificationType::DOWNLOAD_INITIATED,
+ chrome::NOTIFICATION_DOWNLOAD_INITIATED,
NotificationService::AllSources());
ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_RETURN));
printf("3\n");