summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_tab_helper_browsertest.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-10 15:52:27 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-10 15:52:27 +0000
commit43211582b1fa8c69136385250e7b0446cf364b5c (patch)
tree655ab01543012b6fd5699dee8fab92876959b7d9 /chrome/browser/automation/automation_tab_helper_browsertest.cc
parentd43970a7ceee5fc5433787b0f28b64234a4039f2 (diff)
downloadchromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.zip
chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.gz
chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.bz2
Moving notification types which are chrome specific to a new header file chrome_notification_types.h.
This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END which defines the end of the enum used by content to define notification types. The notificaton_type.h file in content\common has been renamed to content_notification_types.h BUG=76698 Review URL: http://codereview.chromium.org/7327007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_tab_helper_browsertest.cc')
-rw-r--r--chrome/browser/automation/automation_tab_helper_browsertest.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/chrome/browser/automation/automation_tab_helper_browsertest.cc b/chrome/browser/automation/automation_tab_helper_browsertest.cc
index 9e87089..8a29aa8 100644
--- a/chrome/browser/automation/automation_tab_helper_browsertest.cc
+++ b/chrome/browser/automation/automation_tab_helper_browsertest.cc
@@ -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"
@@ -35,11 +35,11 @@ class MockNotificationObserver : public NotificationObserver {
MockNotificationObserver() { }
virtual ~MockNotificationObserver() { }
- MOCK_METHOD3(Observe, void(NotificationType type,
+ MOCK_METHOD3(Observe, void(int type,
const NotificationSource& source,
const NotificationDetails& details));
- void Register(NotificationType type, const NotificationSource& source) {
+ void Register(int type, const NotificationSource& source) {
registrar_.Add(this, type, source);
}
@@ -68,13 +68,13 @@ class AutomationTabHelperBrowserTest : public InProcessBrowserTest {
MockTabEventObserver* mock_tab_observer,
MockNotificationObserver* mock_notification_observer) {
mock_notification_observer->Register(
- NotificationType::DOM_OPERATION_RESPONSE,
+ chrome::NOTIFICATION_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::NOTIFICATION_DOM_OPERATION_RESPONSE), _, _));
EXPECT_CALL(*mock_tab_observer, OnNoMorePendingLoads(_))
.WillOnce(testing::InvokeWithoutArgs(
MessageLoopForUI::current(), &MessageLoop::Quit));
@@ -181,15 +181,16 @@ IN_PROC_BROWSER_TEST_F(AutomationTabHelperBrowserTest,
IN_PROC_BROWSER_TEST_F(AutomationTabHelperBrowserTest,
LoadStopComesAfterOnLoad) {
MockNotificationObserver mock_notification_observer;
- mock_notification_observer.Register(NotificationType::DOM_OPERATION_RESPONSE,
- NotificationService::AllSources());
+ mock_notification_observer.Register(
+ chrome::NOTIFICATION_DOM_OPERATION_RESPONSE,
+ NotificationService::AllSources());
MockTabEventObserver mock_tab_observer(tab_helper());
EXPECT_CALL(mock_tab_observer, OnFirstPendingLoad(_));
{
testing::InSequence expect_in_sequence;
EXPECT_CALL(mock_notification_observer, Observe(
- testing::Eq(NotificationType::DOM_OPERATION_RESPONSE), _, _));
+ testing::Eq(chrome::NOTIFICATION_DOM_OPERATION_RESPONSE), _, _));
EXPECT_CALL(mock_tab_observer, OnNoMorePendingLoads(_));
}