| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "gin/modules/console.h" | 8 #include "gin/modules/console.h" |
| 9 #include "gin/modules/module_registry.h" | 9 #include "gin/modules/module_registry.h" |
| 10 #include "gin/modules/timer.h" | 10 #include "gin/modules/timer.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 PathService::Get(base::DIR_SOURCE_ROOT, &path); | 38 PathService::Get(base::DIR_SOURCE_ROOT, &path); |
| 39 path = path.AppendASCII("mojo") | 39 path = path.AppendASCII("mojo") |
| 40 .AppendASCII("edk") | 40 .AppendASCII("edk") |
| 41 .AppendASCII("js") | 41 .AppendASCII("js") |
| 42 .AppendASCII("tests") | 42 .AppendASCII("tests") |
| 43 .AppendASCII(test); | 43 .AppendASCII(test); |
| 44 TestRunnerDelegate delegate; | 44 TestRunnerDelegate delegate; |
| 45 gin::RunTestFromFile(path, &delegate, false); | 45 gin::RunTestFromFile(path, &delegate, false); |
| 46 } | 46 } |
| 47 | 47 |
| 48 TEST(JSTest, connection) { | 48 TEST(JSTest, Connection) { |
| 49 RunTest("connection_tests.js"); | 49 RunTest("connection_tests.js"); |
| 50 } | 50 } |
| 51 | 51 |
| 52 TEST(JSTest, sample_service) { | 52 TEST(JSTest, SampleService) { |
| 53 RunTest("sample_service_tests.js"); | 53 RunTest("sample_service_tests.js"); |
| 54 } | 54 } |
| 55 | 55 |
| 56 TEST(JSTest, InterfacePtr) { |
| 57 RunTest("interface_ptr_tests.js"); |
| 58 } |
| 59 |
| 60 TEST(JSTest, Binding) { |
| 61 RunTest("binding_tests.js"); |
| 62 } |
| 63 |
| 56 } // namespace | 64 } // namespace |
| 57 } // namespace js | 65 } // namespace js |
| 58 } // namespace edk | 66 } // namespace edk |
| 59 } // namespace mojo | 67 } // namespace mojo |
| OLD | NEW |