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

Side by Side Diff: mojo/public/cpp/bindings/tests/validation_test_input_parser.cc

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_serialization.h ('k') | mojo/public/cpp/utility/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/public/cpp/bindings/tests/validation_test_input_parser.h" 5 #include "mojo/public/cpp/bindings/tests/validation_test_input_parser.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <string.h> 9 #include <string.h>
10 10
11 #include <limits> 11 #include <limits>
12 #include <map> 12 #include <map>
13 #include <set> 13 #include <set>
14 #include <utility> 14 #include <utility>
15 15
16 #include "mojo/public/c/system/macros.h"
17
18 namespace mojo { 16 namespace mojo {
19 namespace test { 17 namespace test {
20 namespace { 18 namespace {
21 19
22 class ValidationTestInputParser { 20 class ValidationTestInputParser {
23 public: 21 public:
24 ValidationTestInputParser(const std::string& input, 22 ValidationTestInputParser(const std::string& input,
25 std::vector<uint8_t>* data, 23 std::vector<uint8_t>* data,
26 size_t* num_handles, 24 size_t* num_handles,
27 std::string* error_message); 25 std::string* error_message);
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 bool ParseValidationTestInput(const std::string& input, 399 bool ParseValidationTestInput(const std::string& input,
402 std::vector<uint8_t>* data, 400 std::vector<uint8_t>* data,
403 size_t* num_handles, 401 size_t* num_handles,
404 std::string* error_message) { 402 std::string* error_message) {
405 ValidationTestInputParser parser(input, data, num_handles, error_message); 403 ValidationTestInputParser parser(input, data, num_handles, error_message);
406 return parser.Run(); 404 return parser.Run();
407 } 405 }
408 406
409 } // namespace test 407 } // namespace test
410 } // namespace mojo 408 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_serialization.h ('k') | mojo/public/cpp/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698