OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ | 5 #ifndef COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ |
6 #define COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ | 6 #define COMPONENTS_JSON_SCHEMA_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 namespace base { |
(...skipping 11 matching lines...) Expand all Loading... | |
22 public: | 22 public: |
23 enum ValidatorType { | 23 enum ValidatorType { |
24 CPP = 1, | 24 CPP = 1, |
25 JS = 2 | 25 JS = 2 |
26 }; | 26 }; |
27 | 27 |
28 explicit JSONSchemaValidatorTestBase(ValidatorType type); | 28 explicit JSONSchemaValidatorTestBase(ValidatorType type); |
29 | 29 |
30 void RunTests(); | 30 void RunTests(); |
31 | 31 |
32 ValidatorType type() { return type_; } | |
Joao da Silva
2014/03/21 15:06:40
What I meant is that "type_" isn't used anymore, s
not at google - send to devlin
2014/03/21 15:27:20
Why wouldn't it be removed?
| |
33 | |
32 protected: | 34 protected: |
33 virtual void ExpectValid(const std::string& test_source, | 35 virtual void ExpectValid(const std::string& test_source, |
34 base::Value* instance, | 36 base::Value* instance, |
35 base::DictionaryValue* schema, | 37 base::DictionaryValue* schema, |
36 base::ListValue* types) = 0; | 38 base::ListValue* types) = 0; |
37 | 39 |
38 virtual void ExpectNotValid(const std::string& test_source, | 40 virtual void ExpectNotValid(const std::string& test_source, |
39 base::Value* instance, | 41 base::Value* instance, |
40 base::DictionaryValue* schema, | 42 base::DictionaryValue* schema, |
41 base::ListValue* types, | 43 base::ListValue* types, |
(...skipping 12 matching lines...) Expand all Loading... | |
54 void TestArrayNonTuple(); | 56 void TestArrayNonTuple(); |
55 void TestString(); | 57 void TestString(); |
56 void TestNumber(); | 58 void TestNumber(); |
57 void TestTypeClassifier(); | 59 void TestTypeClassifier(); |
58 void TestTypes(); | 60 void TestTypes(); |
59 | 61 |
60 ValidatorType type_; | 62 ValidatorType type_; |
61 }; | 63 }; |
62 | 64 |
63 #endif // COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ | 65 #endif // COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_UNITTEST_BASE_H_ |
OLD | NEW |