From c9523469b7432f5c7ac2275f816b70d080ff88ab Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Mon, 31 Dec 2012 20:50:41 +0000 Subject: content: Remove forbidden "using namespace content" directive. BUG=82078 TBR=joth@chromium.org Review URL: https://codereview.chromium.org/11725002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174787 0039d316-1c4b-4281-b951-d872f2087c98 --- ...ercept_navigation_resource_throttle_unittest.cc | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/content/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc b/content/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc index a7a11b9..26964d4 100644 --- a/content/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc +++ b/content/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc @@ -25,13 +25,17 @@ #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" -using namespace content; -using namespace ::testing; +using testing::_; +using testing::Eq; +using testing::Ne; +using testing::Return; + +namespace content { namespace { -const char* kTestUrl = "http://www.test.com/"; -const char* kUnsafeTestUrl = "about:crash"; +const char kTestUrl[] = "http://www.test.com/"; +const char kUnsafeTestUrl[] = "about:crash"; void ContinueTestCase() { BrowserThread::PostTask( @@ -48,15 +52,14 @@ class MockInterceptCallbackReceiver { public: MOCK_METHOD6(ShouldIgnoreNavigation, bool(RenderViewHost* source, const GURL& url, - const content::Referrer& referrer, + const Referrer& referrer, bool is_post, bool has_user_gesture, PageTransition page_transition)); }; // MockResourceController ----------------------------------------------------- -class MockResourceController - : public content::ResourceController { +class MockResourceController : public ResourceController { public: enum Status { UNKNOWN, @@ -70,7 +73,7 @@ class MockResourceController Status status() const { return status_; } - // content::ResourceController + // ResourceController: virtual void Cancel() { NOTREACHED(); } @@ -133,7 +136,7 @@ class TestIOThreadState { } private: - content::MockResourceContext resource_context_; + MockResourceContext resource_context_; net::URLRequest request_; scoped_ptr throttle_; MockResourceController throttle_controller_; @@ -238,8 +241,8 @@ class InterceptNavigationResourceThrottleTest } scoped_ptr mock_callback_receiver_; - content::TestBrowserThread ui_thread_; - content::TestBrowserThread io_thread_; + TestBrowserThread ui_thread_; + TestBrowserThread io_thread_; TestIOThreadState* io_thread_state_; }; @@ -407,3 +410,5 @@ TEST_F(InterceptNavigationResourceThrottleTest, // Wait for the request to finish processing. message_loop_.Run(); } + +} // namespace content -- cgit v1.1