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

Unified Diff: chrome/test/run_all_unittests.cc

Issue 8599010: Setup JS unittests for Chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move run_all_unittests.cc into chrome/test Created 9 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 | « chrome/js_unittest_vars.gypi ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/run_all_unittests.cc
diff --git a/chrome/test/run_all_unittests.cc b/chrome/test/run_all_unittests.cc
new file mode 100644
index 0000000000000000000000000000000000000000..408b31402ddc53656db29b044a44eee837a7ff21
--- /dev/null
+++ b/chrome/test/run_all_unittests.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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.
+
+// A basic testrunner that supports JavaScript unittests.
+// This lives in src/chrome/test so that:
+// (1) it can be shared by different subprojects,
+// (2) it can include chrome_paths.h (required for JS unittests) without
+// updating the DEPS file for each subproject.
+
+#include "base/file_path.h"
jcivelli 2011/11/21 21:54:15 I don't think you need these 3 includes.
garykac 2011/11/21 22:04:54 Removed.
+#include "base/logging.h"
+#include "base/path_service.h"
+#include "base/test/test_suite.h"
+#include "chrome/common/chrome_paths.h"
+
+int main(int argc, char** argv) {
+ base::TestSuite test_suite(argc, argv);
+
+ // This is required for the JavaScript unittests.
+ chrome::RegisterPathProvider();
+
+ return test_suite.Run();
+}
« no previous file with comments | « chrome/js_unittest_vars.gypi ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698