OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/resource_bundle.h" | |
6 #include "base/file_util.h" | 5 #include "base/file_util.h" |
7 #include "base/path_service.h" | 6 #include "base/path_service.h" |
8 #include "base/string_util.h" | 7 #include "base/string_util.h" |
9 #include "chrome/common/chrome_paths.h" | 8 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/test/v8_unit_test.h" | 9 #include "chrome/test/v8_unit_test.h" |
| 10 #include "grit/renderer_resources.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 #include "ui/base/resource/resource_bundle.h" |
13 #include "grit/renderer_resources.h" | |
14 | 13 |
15 static const char kJsonSchema[] = "json_schema.js"; | 14 static const char kJsonSchema[] = "json_schema.js"; |
16 static const char kJsonSchemaTest[] = "json_schema_test.js"; | 15 static const char kJsonSchemaTest[] = "json_schema_test.js"; |
17 | 16 |
18 class JsonSchemaTest : public V8UnitTest { | 17 class JsonSchemaTest : public V8UnitTest { |
19 public: | 18 public: |
20 JsonSchemaTest() {} | 19 JsonSchemaTest() {} |
21 | 20 |
22 virtual void SetUp() { | 21 virtual void SetUp() { |
23 V8UnitTest::SetUp(); | 22 V8UnitTest::SetUp(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 TestFunction("testNumber"); | 83 TestFunction("testNumber"); |
85 } | 84 } |
86 | 85 |
87 TEST_F(JsonSchemaTest, TestType) { | 86 TEST_F(JsonSchemaTest, TestType) { |
88 TestFunction("testType"); | 87 TestFunction("testType"); |
89 } | 88 } |
90 | 89 |
91 TEST_F(JsonSchemaTest, TestTypeReference) { | 90 TEST_F(JsonSchemaTest, TestTypeReference) { |
92 TestFunction("testTypeReference"); | 91 TestFunction("testTypeReference"); |
93 } | 92 } |
OLD | NEW |