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 // Serialization warnings are only recorded in debug build. | 5 // Serialization warnings are only recorded in debug build. |
6 #ifndef NDEBUG | 6 #ifndef NDEBUG |
7 | 7 |
| 8 #include "mojo/public/cpp/bindings/array.h" |
| 9 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
| 10 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
| 11 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
| 12 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
| 13 #include "mojo/public/cpp/bindings/string.h" |
| 14 #include "mojo/public/cpp/system/message_pipe.h" |
| 15 #include "mojo/public/interfaces/bindings/tests/serialization_test_structs.mojom
.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" | |
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_internal.h" | |
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_serialization.
h" | |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/fixed_buffer.h" | |
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validation_errors.h" | |
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" | |
15 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | |
16 #include "third_party/mojo/src/mojo/public/interfaces/bindings/tests/serializati
on_test_structs.mojom.h" | |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace test { | 19 namespace test { |
20 namespace { | 20 namespace { |
21 | 21 |
22 using mojo::internal::ArrayValidateParams; | 22 using mojo::internal::ArrayValidateParams; |
23 | 23 |
24 // Creates an array of arrays of handles (2 X 3) for testing. | 24 // Creates an array of arrays of handles (2 X 3) for testing. |
25 Array<Array<ScopedHandle>> CreateTestNestedHandleArray() { | 25 Array<Array<ScopedHandle>> CreateTestNestedHandleArray() { |
26 Array<Array<ScopedHandle>> array(2); | 26 Array<Array<ScopedHandle>> array(2); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 TestArrayWarning(test_array.Pass(), | 218 TestArrayWarning(test_array.Pass(), |
219 mojo::internal::VALIDATION_ERROR_UNEXPECTED_ARRAY_HEADER, | 219 mojo::internal::VALIDATION_ERROR_UNEXPECTED_ARRAY_HEADER, |
220 &validate_params_2); | 220 &validate_params_2); |
221 } | 221 } |
222 | 222 |
223 } // namespace | 223 } // namespace |
224 } // namespace test | 224 } // namespace test |
225 } // namespace mojo | 225 } // namespace mojo |
226 | 226 |
227 #endif | 227 #endif |
OLD | NEW |