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

Unified Diff: chrome/test/remoting/webapp_javascript_unittest.cc

Issue 376803005: JavaScript unit test framework for Chrome remote desktop - Part II (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chrome/test/remoting/qunit_browser_test_runner.cc ('k') | remoting/remoting_test.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/remoting/webapp_javascript_unittest.cc
diff --git a/chrome/test/remoting/webapp_javascript_unittest.cc b/chrome/test/remoting/webapp_javascript_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5b4793ed6ea272c1fe480b2d5420d5d4e8e8e146
--- /dev/null
+++ b/chrome/test/remoting/webapp_javascript_unittest.cc
@@ -0,0 +1,28 @@
+// 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/path_service.h"
+#include "chrome/test/remoting/qunit_browser_test_runner.h"
+
+#if defined(OS_MACOSX)
+#include "base/mac/mac_util.h"
+#endif // !defined(OS_MACOSX)
+
+namespace remoting {
+
+IN_PROC_BROWSER_TEST_F(QUnitBrowserTestRunner, Remoting_Webapp_Js_Unittest) {
+ base::FilePath base_dir;
+ ASSERT_TRUE(PathService::Get(base::DIR_EXE, &base_dir));
+
+#if defined(OS_MACOSX)
+ if (base::mac::AmIBundled()) {
+ // If we are inside a mac bundle, navigate up to the output directory
+ base_dir = base::mac::GetAppBundlePath(base_dir).DirName();
+ }
+#endif // !defined(OS_MACOSX)
+ RunTest(
+ base_dir.Append(FILE_PATH_LITERAL("remoting/unittests/unittest.html")));
+}
+
+} // namespace remoting
« no previous file with comments | « chrome/test/remoting/qunit_browser_test_runner.cc ('k') | remoting/remoting_test.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698