Home | History | Annotate | Download | only in remoting
      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.
      4 
      5 #include "base/path_service.h"
      6 #include "chrome/test/remoting/qunit_browser_test_runner.h"
      7 
      8 #if defined(OS_MACOSX)
      9 #include "base/mac/mac_util.h"
     10 #endif // !defined(OS_MACOSX)
     11 
     12 namespace remoting {
     13 
     14 IN_PROC_BROWSER_TEST_F(QUnitBrowserTestRunner, Remoting_Webapp_Js_Unittest) {
     15   base::FilePath base_dir;
     16   ASSERT_TRUE(PathService::Get(base::DIR_EXE, &base_dir));
     17 
     18 #if defined(OS_MACOSX)
     19   if (base::mac::AmIBundled()) {
     20     // If we are inside a mac bundle, navigate up to the output directory
     21     base_dir = base::mac::GetAppBundlePath(base_dir).DirName();
     22   }
     23 #endif // !defined(OS_MACOSX)
     24   RunTest(
     25       base_dir.Append(FILE_PATH_LITERAL("remoting/unittests/unittest.html")));
     26 }
     27 
     28 }  // namespace remoting
     29