Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: components/safe_json/testing_json_parser.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SAFE_JSON_TESTING_JSON_PARSER_H_ 5 #ifndef COMPONENTS_SAFE_JSON_TESTING_JSON_PARSER_H_
6 #define COMPONENTS_SAFE_JSON_TESTING_JSON_PARSER_H_ 6 #define COMPONENTS_SAFE_JSON_TESTING_JSON_PARSER_H_
7 7
8 #include "base/macros.h"
8 #include "components/safe_json/safe_json_parser.h" 9 #include "components/safe_json/safe_json_parser.h"
9 10
10 namespace safe_json { 11 namespace safe_json {
11 12
12 // An implementation of SafeJsonParser that parses JSON in process. This can be 13 // An implementation of SafeJsonParser that parses JSON in process. This can be
13 // used in unit tests to avoid having to set up the multiprocess infrastructure 14 // used in unit tests to avoid having to set up the multiprocess infrastructure
14 // necessary for the out-of-process SafeJsonParser. 15 // necessary for the out-of-process SafeJsonParser.
15 class TestingJsonParser : public SafeJsonParser { 16 class TestingJsonParser : public SafeJsonParser {
16 public: 17 public:
17 // A helper class that will temporarily override the SafeJsonParser factory to 18 // A helper class that will temporarily override the SafeJsonParser factory to
(...skipping 21 matching lines...) Expand all
39 const std::string unsafe_json_; 40 const std::string unsafe_json_;
40 SuccessCallback success_callback_; 41 SuccessCallback success_callback_;
41 ErrorCallback error_callback_; 42 ErrorCallback error_callback_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(TestingJsonParser); 44 DISALLOW_COPY_AND_ASSIGN(TestingJsonParser);
44 }; 45 };
45 46
46 } // namespace 47 } // namespace
47 48
48 #endif // COMPONENTS_SAFE_JSON_TESTING_JSON_PARSER_H_ 49 #endif // COMPONENTS_SAFE_JSON_TESTING_JSON_PARSER_H_
OLDNEW
« no previous file with comments | « components/safe_json/safe_json_parser_impl.h ('k') | components/scheduler/base/cancelable_closure_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698