Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / remoting / webapp_javascript_unittest.cc
blob771f82a8822c480fde228a7cafc6b8f531f53d23
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/path_service.h"
6 #include "chrome/test/remoting/qunit_browser_test_runner.h"
8 #if defined(OS_MACOSX)
9 #include "base/mac/foundation_util.h"
10 #endif // !defined(OS_MACOSX)
12 namespace remoting {
14 // Flakily times out on Win7 Tests (dbg): https://crbug.com/504204.
15 #if defined(OS_WIN) && !defined(NDEBUG)
16 #define MAYBE_Remoting_Webapp_Js_Unittest DISABLED_Remoting_Webapp_Js_Unittest
17 #else
18 #define MAYBE_Remoting_Webapp_Js_Unittest Remoting_Webapp_Js_Unittest
19 #endif
20 IN_PROC_BROWSER_TEST_F(QUnitBrowserTestRunner,
21 MAYBE_Remoting_Webapp_Js_Unittest) {
22 base::FilePath base_dir;
23 ASSERT_TRUE(PathService::Get(base::DIR_EXE, &base_dir));
25 #if defined(OS_MACOSX)
26 if (base::mac::AmIBundled()) {
27 // If we are inside a mac bundle, navigate up to the output directory
28 base_dir = base::mac::GetAppBundlePath(base_dir).DirName();
30 #endif // !defined(OS_MACOSX)
31 RunTest(
32 base_dir.Append(FILE_PATH_LITERAL("remoting/unittests/unittests.html")));
35 } // namespace remoting