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

Unified Diff: chrome/browser/automation/automation_tab_helper_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/automation/automation_tab_helper_browsertest.cc
===================================================================
--- chrome/browser/automation/automation_tab_helper_browsertest.cc (revision 91771)
+++ chrome/browser/automation/automation_tab_helper_browsertest.cc (working copy)
@@ -12,6 +12,7 @@
#include "chrome/browser/automation/mock_tab_event_observer.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/in_process_browser_test.h"
@@ -23,7 +24,6 @@
#include "content/common/notification_registrar.h"
#include "content/common/notification_service.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "net/base/net_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -68,13 +68,13 @@
MockTabEventObserver* mock_tab_observer,
MockNotificationObserver* mock_notification_observer) {
mock_notification_observer->Register(
- NotificationType::DOM_OPERATION_RESPONSE,
+ chrome::DOM_OPERATION_RESPONSE,
NotificationService::AllSources());
testing::InSequence expect_in_sequence;
EXPECT_CALL(*mock_tab_observer, OnFirstPendingLoad(_));
EXPECT_CALL(*mock_notification_observer, Observe(
- testing::Eq(NotificationType::DOM_OPERATION_RESPONSE), _, _));
+ testing::Eq(chrome::DOM_OPERATION_RESPONSE), _, _));
EXPECT_CALL(*mock_tab_observer, OnNoMorePendingLoads(_))
.WillOnce(testing::InvokeWithoutArgs(
MessageLoopForUI::current(), &MessageLoop::Quit));
@@ -181,7 +181,7 @@
IN_PROC_BROWSER_TEST_F(AutomationTabHelperBrowserTest,
LoadStopComesAfterOnLoad) {
MockNotificationObserver mock_notification_observer;
- mock_notification_observer.Register(NotificationType::DOM_OPERATION_RESPONSE,
+ mock_notification_observer.Register(chrome::DOM_OPERATION_RESPONSE,
NotificationService::AllSources());
MockTabEventObserver mock_tab_observer(tab_helper());
@@ -189,7 +189,7 @@
{
testing::InSequence expect_in_sequence;
EXPECT_CALL(mock_notification_observer, Observe(
- testing::Eq(NotificationType::DOM_OPERATION_RESPONSE), _, _));
+ testing::Eq(chrome::DOM_OPERATION_RESPONSE), _, _));
EXPECT_CALL(mock_tab_observer, OnNoMorePendingLoads(_));
}

Powered by Google App Engine
This is Rietveld 408576698