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

Unified Diff: chromecast/app/cast_test_launcher.cc

Issue 2502143002: Revert of [chromecast] Make testnames consistent. (Closed)
Patch Set: 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
« no previous file with comments | « chromecast/app/DEPS ('k') | chromecast/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/app/cast_test_launcher.cc
diff --git a/chromecast/app/cast_test_launcher.cc b/chromecast/app/cast_test_launcher.cc
deleted file mode 100644
index 926b53708410680b680260adc3cf6edc92829d1b..0000000000000000000000000000000000000000
--- a/chromecast/app/cast_test_launcher.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 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/macros.h"
-#include "base/sys_info.h"
-#include "base/test/test_suite.h"
-#include "chromecast/app/cast_main_delegate.h"
-#include "content/public/test/test_launcher.h"
-
-namespace chromecast {
-namespace shell {
-
-class CastTestLauncherDelegate : public content::TestLauncherDelegate {
- public:
- CastTestLauncherDelegate() {}
- ~CastTestLauncherDelegate() override {}
-
- int RunTestSuite(int argc, char** argv) override {
- return base::TestSuite(argc, argv).Run();
- }
-
- bool AdjustChildProcessCommandLine(
- base::CommandLine* command_line,
- const base::FilePath& temp_data_dir) override {
- return true;
- }
-
- protected:
- content::ContentMainDelegate* CreateContentMainDelegate() override {
- return new CastMainDelegate();
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CastTestLauncherDelegate);
-};
-
-} // namespace shell
-} // namespace chromecast
-
-int main(int argc, char** argv) {
- int default_jobs = std::max(1, base::SysInfo::NumberOfProcessors() / 2);
- chromecast::shell::CastTestLauncherDelegate launcher_delegate;
- return content::LaunchTests(&launcher_delegate, default_jobs, argc, argv);
-}
« no previous file with comments | « chromecast/app/DEPS ('k') | chromecast/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698