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

Unified Diff: content/test/test_browser_context.cc

Issue 10492009: Move test headers from content\test to content\public\test. This way we can enforce that internal c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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: content/test/test_browser_context.cc
===================================================================
--- content/test/test_browser_context.cc (revision 140250)
+++ content/test/test_browser_context.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/test/test_browser_context.h"
+#include "content/public/test/test_browser_context.h"
#include "base/file_path.h"
#include "content/public/test/mock_resource_context.h"
@@ -10,7 +10,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/quota/special_storage_policy.h"
-using content::DownloadManager;
+namespace content {
TestBrowserContext::TestBrowserContext() {
EXPECT_TRUE(browser_context_dir_.CreateUniqueTempDir());
@@ -53,19 +53,19 @@
return NULL;
}
-content::ResourceContext* TestBrowserContext::GetResourceContext() {
+ResourceContext* TestBrowserContext::GetResourceContext() {
if (!resource_context_.get())
- resource_context_.reset(new content::MockResourceContext());
+ resource_context_.reset(new MockResourceContext());
return resource_context_.get();
}
-content::GeolocationPermissionContext*
-TestBrowserContext::GetGeolocationPermissionContext() {
+GeolocationPermissionContext*
+ TestBrowserContext::GetGeolocationPermissionContext() {
return NULL;
}
-content::SpeechRecognitionPreferences*
-TestBrowserContext::GetSpeechRecognitionPreferences() {
+SpeechRecognitionPreferences*
+ TestBrowserContext::GetSpeechRecognitionPreferences() {
return NULL;
}
@@ -76,3 +76,5 @@
quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
return special_storage_policy_.get();
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698