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

Unified Diff: apps/test/apps_test_launcher_delegate.cc

Issue 205653002: Add apps_browsertests target (currently running 0 tests). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: apps/test/apps_test_launcher_delegate.cc
diff --git a/apps/test/apps_test_launcher_delegate.cc b/apps/test/apps_test_launcher_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d8b4dd58f3adb6ecbdfe8587b8087eb8f04434ef
--- /dev/null
+++ b/apps/test/apps_test_launcher_delegate.cc
@@ -0,0 +1,29 @@
+// 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 "apps/test/apps_test_launcher_delegate.h"
+
+#include "apps/shell/app/shell_main_delegate.h"
+#include "apps/test/apps_test_suite_base.h"
+#include "base/command_line.h"
+#include "content/public/app/content_main_delegate.h"
jam 2014/03/20 16:58:13 nit: not needd. also the previous include i think
Yoyo Zhou 2014/03/20 21:17:30 Done.
+
+namespace apps {
+
+int AppsTestLauncherDelegate::RunTestSuite(int argc, char** argv) {
+ return AppsTestSuiteBase(argc, argv).Run();
jam 2014/03/20 16:58:13 just call content::ContentTestSuiteBase(argc, argv
Yoyo Zhou 2014/03/20 21:17:30 Why is ContentTestSuiteBase's constructor protecte
jam 2014/03/20 23:43:22 I think because before, you always needed to deriv
+}
+
+bool AppsTestLauncherDelegate::AdjustChildProcessCommandLine(
+ base::CommandLine* command_line,
+ const base::FilePath& temp_data_dir) {
+ return true;
+}
+
+content::ContentMainDelegate*
+AppsTestLauncherDelegate::CreateContentMainDelegate() {
+ return new ShellMainDelegate();
+}
+
+} // namespace apps

Powered by Google App Engine
This is Rietveld 408576698