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

Unified Diff: content/test/content_test_launcher.cc

Issue 10809016: Move content_shell and content_browsertests code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 5 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
« no previous file with comments | « content/test/content_browser_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_test_launcher.cc
===================================================================
--- content/test/content_test_launcher.cc (revision 147404)
+++ content/test/content_test_launcher.cc (working copy)
@@ -85,8 +85,6 @@
DISALLOW_COPY_AND_ASSIGN(ContentBrowserTestSuite);
};
-} // namespace content
-
class ContentTestLauncherDelegate : public test_launcher::TestLauncherDelegate {
public:
ContentTestLauncherDelegate() {
@@ -105,13 +103,13 @@
ShellMainDelegate delegate;
#if defined(OS_WIN)
sandbox::SandboxInterfaceInfo sandbox_info = {0};
- content::InitializeSandboxInfo(&sandbox_info);
+ InitializeSandboxInfo(&sandbox_info);
*return_code =
- content::ContentMain(GetModuleHandle(NULL), &sandbox_info, &delegate);
+ ContentMain(GetModuleHandle(NULL), &sandbox_info, &delegate);
#elif defined(OS_LINUX)
- *return_code = content::ContentMain(argc,
- const_cast<const char**>(argv),
- &delegate);
+ *return_code = ContentMain(argc,
+ const_cast<const char**>(argv),
+ &delegate);
#endif // defined(OS_WIN)
return true;
}
@@ -121,7 +119,7 @@
}
virtual int RunTestSuite(int argc, char** argv) OVERRIDE {
- return content::ContentBrowserTestSuite(argc, argv).Run();
+ return ContentBrowserTestSuite(argc, argv).Run();
}
virtual bool AdjustChildProcessCommandLine(
@@ -133,7 +131,9 @@
DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate);
};
+} // namespace content
+
int main(int argc, char** argv) {
- ContentTestLauncherDelegate launcher_delegate;
+ content::ContentTestLauncherDelegate launcher_delegate;
return test_launcher::LaunchTests(&launcher_delegate, argc, argv);
}
« no previous file with comments | « content/test/content_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698