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

Unified Diff: chromecast/browser/test/chromecast_browser_test_runner.cc

Issue 2510473002: Reland: [chromecast] Make testnames consistent. (Closed)
Patch Set: rebase Created 4 years, 1 month 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: chromecast/browser/test/chromecast_browser_test_runner.cc
diff --git a/chromecast/browser/test/chromecast_browser_test_runner.cc b/chromecast/browser/test/chromecast_browser_test_runner.cc
deleted file mode 100644
index b68b1f395158348c631ec17f0fac453675566a85..0000000000000000000000000000000000000000
--- a/chromecast/browser/test/chromecast_browser_test_runner.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/command_line.h"
-#include "base/macros.h"
-#include "base/sys_info.h"
-#include "chromecast/app/cast_main_delegate.h"
-#include "chromecast/base/chromecast_switches.h"
-#include "content/public/common/content_switches.h"
-#include "content/public/test/content_test_suite_base.h"
-#include "content/public/test/test_launcher.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace chromecast {
-namespace shell {
-
-namespace {
-
-const char kTestTypeBrowser[] = "browser";
-
-class BrowserTestSuite : public content::ContentTestSuiteBase {
- public:
- BrowserTestSuite(int argc, char** argv)
- : content::ContentTestSuiteBase(argc, argv) {
- }
- ~BrowserTestSuite() override {
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrowserTestSuite);
-};
-
-class ChromecastTestLauncherDelegate : public content::TestLauncherDelegate {
- public:
- ChromecastTestLauncherDelegate() {}
- ~ChromecastTestLauncherDelegate() override {}
-
- int RunTestSuite(int argc, char** argv) override {
- return BrowserTestSuite(argc, argv).Run();
- }
-
- bool AdjustChildProcessCommandLine(
- base::CommandLine* command_line,
- const base::FilePath& temp_data_dir) override {
- // TODO(gunsch): handle temp_data_dir
- command_line->AppendSwitch(switches::kNoWifi);
- command_line->AppendSwitchASCII(switches::kTestType, kTestTypeBrowser);
- return true;
- }
-
- protected:
- content::ContentMainDelegate* CreateContentMainDelegate() override {
- return new CastMainDelegate();
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ChromecastTestLauncherDelegate);
-};
-
-} // namespace
-
-} // namespace shell
-} // namespace chromecast
-
-int main(int argc, char** argv) {
- int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2);
- chromecast::shell::ChromecastTestLauncherDelegate launcher_delegate;
- return LaunchTests(&launcher_delegate, default_jobs, argc, argv);
-}
« no previous file with comments | « chromecast/browser/test/chromecast_browser_test.cc ('k') | chromecast/browser/test/chromecast_shell_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698