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

Unified Diff: chrome/browser/autofill/autofill_browsertest.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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/autofill/autofill_browsertest.cc
===================================================================
--- chrome/browser/autofill/autofill_browsertest.cc (revision 91880)
+++ chrome/browser/autofill/autofill_browsertest.cc (working copy)
@@ -183,7 +183,7 @@
LOG(WARNING) << "Typing 'M' to bring up the Autofill popup.";
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_M, false, true, false, false,
- NotificationType::AUTOFILL_DID_SHOW_SUGGESTIONS,
+ chrome::AUTOFILL_DID_SHOW_SUGGESTIONS,
Source<RenderViewHost>(render_view_host())));
// Press the down arrow to select the suggestion and preview the autofilled
@@ -191,7 +191,7 @@
LOG(WARNING) << "Simulating down arrow press to initiate Autofill preview.";
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_DOWN, false, false, false, false,
- NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
+ chrome::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(render_view_host())));
// The previewed values should not be accessible to JavaScript.
@@ -211,7 +211,7 @@
LOG(WARNING) << "Simulating Return press to fill the form.";
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_RETURN, false, false, false, false,
- NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
+ chrome::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(render_view_host())));
// The form should be filled.
@@ -251,20 +251,20 @@
// shown.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_DOWN, false, false, false, false,
- NotificationType::AUTOFILL_DID_SHOW_SUGGESTIONS,
+ chrome::AUTOFILL_DID_SHOW_SUGGESTIONS,
Source<RenderViewHost>(render_view_host())));
// Press the down arrow to select the suggestion and preview the autofilled
// form.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_DOWN, false, false, false, false,
- NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
+ chrome::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(render_view_host())));
// Press Enter to accept the autofill suggestions.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_RETURN, false, false, false, false,
- NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
+ chrome::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(render_view_host())));
// The form should be filled.
@@ -308,20 +308,20 @@
// shown.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_M, false, true, false, false,
- NotificationType::AUTOFILL_DID_SHOW_SUGGESTIONS,
+ chrome::AUTOFILL_DID_SHOW_SUGGESTIONS,
Source<RenderViewHost>(render_view_host())));
// Press the down arrow to select the suggestion and preview the autofilled
// form.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_DOWN, false, false, false, false,
- NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
+ chrome::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(render_view_host())));
// Press Enter to accept the autofill suggestions.
ASSERT_TRUE(ui_test_utils::SendKeyPressAndWait(
browser(), ui::VKEY_RETURN, false, false, false, false,
- NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
+ chrome::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(render_view_host())));
// The form should be filled.
@@ -484,7 +484,7 @@
L"cr.googleTranslate.onTranslateElementLoad();"));
// Simulate the render notifying the translation has been done.
- ui_test_utils::WaitForNotification(NotificationType::PAGE_TRANSLATED);
+ ui_test_utils::WaitForNotification(chrome::PAGE_TRANSLATED);
TryBasicFormFill();
}

Powered by Google App Engine
This is Rietveld 408576698