summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/navigation_controller_unittest.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 02:52:53 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 02:52:53 +0000
commit6c2381d5ec28a86536c07dfa4a398a2b6bc1a58c (patch)
treea75584b11b8ef188b4eb3376b9146e063823a916 /content/browser/tab_contents/navigation_controller_unittest.cc
parentbf3ee201c1ca5112f7fd173fc4785aa52920c5c0 (diff)
downloadchromium_src-6c2381d5ec28a86536c07dfa4a398a2b6bc1a58c.zip
chromium_src-6c2381d5ec28a86536c07dfa4a398a2b6bc1a58c.tar.gz
chromium_src-6c2381d5ec28a86536c07dfa4a398a2b6bc1a58c.tar.bz2
Move NotificationObserver, NotificationSource, and NotificationDetails to content/public/browser.
This patch got way bigger than I wanted, but once I moved NotificationDetails, I figured I might as well mvoe the others since they're in the same files. In hindsight, I should have converted a subset of files at a time by leaving a using statement in the header. BUG=98716 TBR=joi git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller_unittest.cc')
-rw-r--r--content/browser/tab_contents/navigation_controller_unittest.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/content/browser/tab_contents/navigation_controller_unittest.cc b/content/browser/tab_contents/navigation_controller_unittest.cc
index 543c98a..cf6b72e 100644
--- a/content/browser/tab_contents/navigation_controller_unittest.cc
+++ b/content/browser/tab_contents/navigation_controller_unittest.cc
@@ -25,8 +25,8 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_delegate.h"
#include "content/browser/tab_contents/test_tab_contents.h"
-#include "content/common/notification_registrar.h"
#include "content/common/view_messages.h"
+#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_types.h"
#include "content/test/test_notification_tracker.h"
#include "net/base/net_util.h"
@@ -45,11 +45,11 @@ class NavigationControllerTest : public ChromeRenderViewHostTestHarness {
void RegisterForAllNavNotifications(TestNotificationTracker* tracker,
NavigationController* controller) {
tracker->ListenFor(content::NOTIFICATION_NAV_ENTRY_COMMITTED,
- Source<NavigationController>(controller));
+ content::Source<NavigationController>(controller));
tracker->ListenFor(content::NOTIFICATION_NAV_LIST_PRUNED,
- Source<NavigationController>(controller));
+ content::Source<NavigationController>(controller));
tracker->ListenFor(content::NOTIFICATION_NAV_ENTRY_CHANGED,
- Source<NavigationController>(controller));
+ content::Source<NavigationController>(controller));
}
class TestTabContentsDelegate : public TabContentsDelegate {
@@ -1380,20 +1380,20 @@ TEST_F(NavigationControllerTest, ClientRedirectAfterInPageNavigation) {
// NotificationObserver implementation used in verifying we've received the
// content::NOTIFICATION_NAV_LIST_PRUNED method.
-class PrunedListener : public NotificationObserver {
+class PrunedListener : public content::NotificationObserver {
public:
explicit PrunedListener(NavigationController* controller)
: notification_count_(0) {
registrar_.Add(this, content::NOTIFICATION_NAV_LIST_PRUNED,
- Source<NavigationController>(controller));
+ content::Source<NavigationController>(controller));
}
virtual void Observe(int type,
- const NotificationSource& source,
- const NotificationDetails& details) {
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) {
if (type == content::NOTIFICATION_NAV_LIST_PRUNED) {
notification_count_++;
- details_ = *(Details<content::PrunedDetails>(details).ptr());
+ details_ = *(content::Details<content::PrunedDetails>(details).ptr());
}
}
@@ -1404,7 +1404,7 @@ class PrunedListener : public NotificationObserver {
content::PrunedDetails details_;
private:
- NotificationRegistrar registrar_;
+ content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(PrunedListener);
};