OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_JSON_JSON_PARSER_H_ | 5 #ifndef BASE_JSON_JSON_PARSER_H_ |
6 #define BASE_JSON_JSON_PARSER_H_ | 6 #define BASE_JSON_JSON_PARSER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
25 // Chromium and Chromium OS check out gtest to different places, so this is | 25 // Chromium and Chromium OS check out gtest to different places, so this is |
26 // unable to compile on both if gtest_prod.h is included here. Instead, include | 26 // unable to compile on both if gtest_prod.h is included here. Instead, include |
27 // its only contents -- this will need to be updated if the macro ever changes. | 27 // its only contents -- this will need to be updated if the macro ever changes. |
28 #define FRIEND_TEST(test_case_name, test_name)\ | 28 #define FRIEND_TEST(test_case_name, test_name)\ |
29 friend class test_case_name##_##test_name##_Test | 29 friend class test_case_name##_##test_name##_Test |
30 | 30 |
31 #define FRIEND_TEST_ALL_PREFIXES(test_case_name, test_name) \ | 31 #define FRIEND_TEST_ALL_PREFIXES(test_case_name, test_name) \ |
32 FRIEND_TEST(test_case_name, test_name); \ | 32 FRIEND_TEST(test_case_name, test_name); \ |
33 FRIEND_TEST(test_case_name, DISABLED_##test_name); \ | 33 FRIEND_TEST(test_case_name, DISABLED_##test_name); \ |
34 FRIEND_TEST(test_case_name, FLAKY_##test_name); \ | 34 FRIEND_TEST(test_case_name, FLAKY_##test_name) |
35 FRIEND_TEST(test_case_name, FAILS_##test_name) | |
36 #endif // OS_CHROMEOS | 35 #endif // OS_CHROMEOS |
37 | 36 |
38 namespace base { | 37 namespace base { |
39 namespace internal { | 38 namespace internal { |
40 | 39 |
41 class JSONParserTest; | 40 class JSONParserTest; |
42 | 41 |
43 // The implementation behind the JSONReader interface. This class is not meant | 42 // The implementation behind the JSONReader interface. This class is not meant |
44 // to be used directly; it encapsulates logic that need not be exposed publicly. | 43 // to be used directly; it encapsulates logic that need not be exposed publicly. |
45 // | 44 // |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeNumbers); | 262 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeNumbers); |
264 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ErrorMessages); | 263 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ErrorMessages); |
265 | 264 |
266 DISALLOW_COPY_AND_ASSIGN(JSONParser); | 265 DISALLOW_COPY_AND_ASSIGN(JSONParser); |
267 }; | 266 }; |
268 | 267 |
269 } // namespace internal | 268 } // namespace internal |
270 } // namespace base | 269 } // namespace base |
271 | 270 |
272 #endif // BASE_JSON_JSON_PARSER_H_ | 271 #endif // BASE_JSON_JSON_PARSER_H_ |
OLD | NEW |