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(); |
+} |