OLD | NEW |
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 "third_party/mojo/src/mojo/public/cpp/bindings/tests/validation_test_in
put_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 "third_party/mojo/src/mojo/public/c/system/macros.h" | 16 #include "mojo/public/c/system/macros.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace test { | 19 namespace test { |
20 namespace { | 20 namespace { |
21 | 21 |
22 class ValidationTestInputParser { | 22 class ValidationTestInputParser { |
23 public: | 23 public: |
24 ValidationTestInputParser(const std::string& input, | 24 ValidationTestInputParser(const std::string& input, |
25 std::vector<uint8_t>* data, | 25 std::vector<uint8_t>* data, |
26 size_t* num_handles, | 26 size_t* num_handles, |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 bool ParseValidationTestInput(const std::string& input, | 401 bool ParseValidationTestInput(const std::string& input, |
402 std::vector<uint8_t>* data, | 402 std::vector<uint8_t>* data, |
403 size_t* num_handles, | 403 size_t* num_handles, |
404 std::string* error_message) { | 404 std::string* error_message) { |
405 ValidationTestInputParser parser(input, data, num_handles, error_message); | 405 ValidationTestInputParser parser(input, data, num_handles, error_message); |
406 return parser.Run(); | 406 return parser.Run(); |
407 } | 407 } |
408 | 408 |
409 } // namespace test | 409 } // namespace test |
410 } // namespace mojo | 410 } // namespace mojo |
OLD | NEW |