| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/file_util.h" | 5 #include "base/files/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "gin/test/file_runner.h" | 7 #include "gin/test/file_runner.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace gin { | 10 namespace gin { |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 base::FilePath BasePath() { | 13 base::FilePath BasePath() { |
| 14 base::FilePath path; | 14 base::FilePath path; |
| 15 PathService::Get(base::DIR_SOURCE_ROOT, &path); | 15 PathService::Get(base::DIR_SOURCE_ROOT, &path); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 TEST(JSTest, ModuleRegistry) { | 36 TEST(JSTest, ModuleRegistry) { |
| 37 RunTest(BasePath() | 37 RunTest(BasePath() |
| 38 .AppendASCII("modules") | 38 .AppendASCII("modules") |
| 39 .AppendASCII("module_registry_unittests.js")); | 39 .AppendASCII("module_registry_unittests.js")); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace | 42 } // namespace |
| 43 } // gin | 43 } // gin |
| OLD | NEW |