| 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/test/file_runner.h" | 10 #include "gin/test/file_runner.h" |
| 11 #include "gin/test/gtest.h" | 11 #include "gin/test/gtest.h" |
| 12 #include "mojo/edk/js/core.h" | 12 #include "mojo/edk/js/core.h" |
| 13 #include "mojo/edk/js/support.h" | 13 #include "mojo/edk/js/support.h" |
| 14 #include "mojo/public/cpp/environment/environment.h" | |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 15 |
| 17 namespace mojo { | 16 namespace mojo { |
| 18 namespace edk { | 17 namespace edk { |
| 19 namespace js { | 18 namespace js { |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 class TestRunnerDelegate : public gin::FileRunnerDelegate { | 21 class TestRunnerDelegate : public gin::FileRunnerDelegate { |
| 23 public: | 22 public: |
| 24 TestRunnerDelegate() { | 23 TestRunnerDelegate() { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 59 } |
| 61 | 60 |
| 62 TEST(JSTest, validation) { | 61 TEST(JSTest, validation) { |
| 63 RunTest("validation_unittests.js", true); | 62 RunTest("validation_unittests.js", true); |
| 64 } | 63 } |
| 65 | 64 |
| 66 } // namespace | 65 } // namespace |
| 67 } // namespace js | 66 } // namespace js |
| 68 } // namespace edk | 67 } // namespace edk |
| 69 } // namespace mojo | 68 } // namespace mojo |
| OLD | NEW |