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

Unified Diff: content/public/test/test_launcher.cc

Issue 11228040: Move sandbox code in content to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/public/test/test_launcher.cc
===================================================================
--- content/public/test/test_launcher.cc (revision 163460)
+++ content/public/test/test_launcher.cc (working copy)
@@ -40,7 +40,7 @@
#include "base/mac/scoped_nsautorelease_pool.h"
#endif
-namespace test_launcher {
+namespace content {
namespace {
@@ -665,18 +665,17 @@
TestLauncherDelegate* launcher_delegate) {
#if defined(OS_WIN)
sandbox::SandboxInterfaceInfo sandbox_info = {0};
- content::InitializeSandboxInfo(&sandbox_info);
- scoped_ptr<content::ContentMainDelegate> chrome_main_delegate(
+ InitializeSandboxInfo(&sandbox_info);
+ scoped_ptr<ContentMainDelegate> chrome_main_delegate(
launcher_delegate->CreateContentMainDelegate());
- return content::ContentMain(GetModuleHandle(NULL),
- &sandbox_info,
- chrome_main_delegate.get());
+ return ContentMain(GetModuleHandle(NULL),
+ &sandbox_info,
+ chrome_main_delegate.get());
#elif defined(OS_LINUX)
- scoped_ptr<content::ContentMainDelegate> chrome_main_delegate(
+ scoped_ptr<ContentMainDelegate> chrome_main_delegate(
launcher_delegate->CreateContentMainDelegate());
- return content::ContentMain(argc,
- const_cast<const char**>(argv),
- chrome_main_delegate.get());
+ return ContentMain(argc, const_cast<const char**>(argv),
+ chrome_main_delegate.get());
#endif // defined(OS_WIN)
NOTREACHED();
return 0;
@@ -704,8 +703,8 @@
#if defined(OS_WIN)
if (command_line->HasSwitch(kSingleProcessTestsFlag)) {
sandbox::SandboxInterfaceInfo sandbox_info;
- content::InitializeSandboxInfo(&sandbox_info);
- content::InitializeSandbox(&sandbox_info);
+ InitializeSandboxInfo(&sandbox_info);
+ InitializeSandbox(&sandbox_info);
}
#endif
return launcher_delegate->RunTestSuite(argc, argv);
@@ -781,4 +780,4 @@
return g_launcher_delegate;
}
-} // namespace test_launcher
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698