| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ | 5 #ifndef CHROME_COMMON_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ |
| 6 #define CHROME_COMMON_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ | 6 #define CHROME_COMMON_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ |
| 7 | 7 |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace base { |
| 10 class DictionaryValue; | 11 class DictionaryValue; |
| 11 class ListValue; | 12 class ListValue; |
| 12 class Value; | 13 class Value; |
| 14 } |
| 15 |
| 16 using base::DictionaryValue; |
| 17 using base::ListValue; |
| 18 using base::Value; |
| 13 | 19 |
| 14 // Base class for unit tests for JSONSchemaValidator. There is currently only | 20 // Base class for unit tests for JSONSchemaValidator. There is currently only |
| 15 // one implementation, JSONSchemaValidatorCPPTest. | 21 // one implementation, JSONSchemaValidatorCPPTest. |
| 16 // | 22 // |
| 17 // TODO(aa): Refactor chrome/test/data/json_schema_test.js into | 23 // TODO(aa): Refactor chrome/test/data/json_schema_test.js into |
| 18 // JSONSchemaValidatorJSTest that inherits from this. | 24 // JSONSchemaValidatorJSTest that inherits from this. |
| 19 class JSONSchemaValidatorTestBase : public testing::Test { | 25 class JSONSchemaValidatorTestBase : public testing::Test { |
| 20 public: | 26 public: |
| 21 enum ValidatorType { | 27 enum ValidatorType { |
| 22 CPP = 1, | 28 CPP = 1, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 void TestArrayNonTuple(); | 56 void TestArrayNonTuple(); |
| 51 void TestString(); | 57 void TestString(); |
| 52 void TestNumber(); | 58 void TestNumber(); |
| 53 void TestTypeClassifier(); | 59 void TestTypeClassifier(); |
| 54 void TestTypes(); | 60 void TestTypes(); |
| 55 | 61 |
| 56 ValidatorType type_; | 62 ValidatorType type_; |
| 57 }; | 63 }; |
| 58 | 64 |
| 59 #endif // CHROME_COMMON_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ | 65 #endif // CHROME_COMMON_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ |
| OLD | NEW |