| 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 "extensions/renderer/module_system_test.h" | 5 #include "extensions/renderer/module_system_test.h" |
| 6 #include "extensions/renderer/v8_schema_registry.h" | 6 #include "extensions/renderer/v8_schema_registry.h" |
| 7 #include "grit/extensions_renderer_resources.h" | 7 #include "grit/extensions_renderer_resources.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 class JsonSchemaTest : public ModuleSystemTest { | 11 class JsonSchemaTest : public ModuleSystemTest { |
| 12 public: | 12 public: |
| 13 virtual void SetUp() OVERRIDE { | 13 virtual void SetUp() override { |
| 14 ModuleSystemTest::SetUp(); | 14 ModuleSystemTest::SetUp(); |
| 15 | 15 |
| 16 env()->RegisterModule("json_schema", IDR_JSON_SCHEMA_JS); | 16 env()->RegisterModule("json_schema", IDR_JSON_SCHEMA_JS); |
| 17 env()->RegisterModule("utils", IDR_UTILS_JS); | 17 env()->RegisterModule("utils", IDR_UTILS_JS); |
| 18 | 18 |
| 19 env()->module_system()->RegisterNativeHandler( | 19 env()->module_system()->RegisterNativeHandler( |
| 20 "schema_registry", schema_registry_.AsNativeHandler()); | 20 "schema_registry", schema_registry_.AsNativeHandler()); |
| 21 | 21 |
| 22 env()->RegisterTestFile("json_schema_test", "json_schema_test.js"); | 22 env()->RegisterTestFile("json_schema_test", "json_schema_test.js"); |
| 23 } | 23 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 TEST_F(JsonSchemaTest, TestCheckSchemaOverlap) { | 90 TEST_F(JsonSchemaTest, TestCheckSchemaOverlap) { |
| 91 TestFunction("testCheckSchemaOverlap"); | 91 TestFunction("testCheckSchemaOverlap"); |
| 92 } | 92 } |
| 93 | 93 |
| 94 TEST_F(JsonSchemaTest, TestInstanceOf) { | 94 TEST_F(JsonSchemaTest, TestInstanceOf) { |
| 95 TestFunction("testInstanceOf"); | 95 TestFunction("testInstanceOf"); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace extensions | 98 } // namespace extensions |
| OLD | NEW |