| 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/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "gin/modules/console.h" | 7 #include "gin/modules/console.h" |
| 8 #include "gin/modules/module_registry.h" | 8 #include "gin/modules/module_registry.h" |
| 9 #include "gin/test/file_runner.h" | 9 #include "gin/test/file_runner.h" |
| 10 #include "gin/test/gtest.h" | 10 #include "gin/test/gtest.h" |
| 11 #include "mojo/edk/js/core.h" | 11 #include "mojo/edk/js/core.h" |
| 12 #include "mojo/edk/js/support.h" | 12 #include "mojo/edk/js/support.h" |
| 13 #include "mojo/public/cpp/environment/environment.h" | 13 #include "mojo/public/cpp/environment/environment.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace js { | 17 namespace edk { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class TestRunnerDelegate : public gin::FileRunnerDelegate { | 20 class TestRunnerDelegate : public gin::FileRunnerDelegate { |
| 21 public: | 21 public: |
| 22 TestRunnerDelegate() { | 22 TestRunnerDelegate() { |
| 23 AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule); | 23 AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule); |
| 24 AddBuiltinModule(Core::kModuleName, Core::GetModule); | 24 AddBuiltinModule(Core::kModuleName, Core::GetModule); |
| 25 AddBuiltinModule(Support::kModuleName, Support::GetModule); | 25 AddBuiltinModule(Support::kModuleName, Support::GetModule); |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 55 | 55 |
| 56 TEST(JSTest, union) { | 56 TEST(JSTest, union) { |
| 57 RunTest("union_unittests.js", true); | 57 RunTest("union_unittests.js", true); |
| 58 } | 58 } |
| 59 | 59 |
| 60 TEST(JSTest, validation) { | 60 TEST(JSTest, validation) { |
| 61 RunTest("validation_unittests.js", true); | 61 RunTest("validation_unittests.js", true); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace | 64 } // namespace |
| 65 } // namespace js | 65 } // namespace edk |
| 66 } // namespace mojo | 66 } // namespace mojo |
| OLD | NEW |