| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "extensions/renderer/api_test_base.h" | 5 #include "extensions/renderer/api_test_base.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "gin/modules/module_registry.h" | 8 #include "gin/modules/module_registry.h" |
| 8 | 9 |
| 9 // A test launcher for tests for the mojoPrivate API defined in | 10 // A test launcher for tests for the mojoPrivate API defined in |
| 10 // extensions/test/data/mojo_private_unittest.js. | 11 // extensions/test/data/mojo_private_unittest.js. |
| 11 | 12 |
| 12 namespace extensions { | 13 namespace extensions { |
| 13 | 14 |
| 14 class MojoPrivateApiTest : public ApiTestBase { | 15 class MojoPrivateApiTest : public ApiTestBase { |
| 15 public: | 16 public: |
| 16 MojoPrivateApiTest() = default; | 17 MojoPrivateApiTest() = default; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ASSERT_NO_FATAL_FAILURE( | 50 ASSERT_NO_FATAL_FAILURE( |
| 50 RunTest("mojo_private_unittest.js", "testRequireAsync")); | 51 RunTest("mojo_private_unittest.js", "testRequireAsync")); |
| 51 } | 52 } |
| 52 | 53 |
| 53 TEST_F(MojoPrivateApiTest, DefineAndRequire) { | 54 TEST_F(MojoPrivateApiTest, DefineAndRequire) { |
| 54 ASSERT_NO_FATAL_FAILURE( | 55 ASSERT_NO_FATAL_FAILURE( |
| 55 RunTest("mojo_private_unittest.js", "testDefineAndRequire")); | 56 RunTest("mojo_private_unittest.js", "testDefineAndRequire")); |
| 56 } | 57 } |
| 57 | 58 |
| 58 } // namespace extensions | 59 } // namespace extensions |
| OLD | NEW |