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