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 <stddef.h> |
| 9 |
8 #include "mojo/public/cpp/bindings/array.h" | 10 #include "mojo/public/cpp/bindings/array.h" |
9 #include "mojo/public/cpp/bindings/lib/array_internal.h" | 11 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
10 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | 12 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
11 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" | 13 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
12 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 14 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
13 #include "mojo/public/cpp/bindings/string.h" | 15 #include "mojo/public/cpp/bindings/string.h" |
14 #include "mojo/public/cpp/system/message_pipe.h" | 16 #include "mojo/public/cpp/system/message_pipe.h" |
15 #include "mojo/public/interfaces/bindings/tests/serialization_test_structs.mojom
.h" | 17 #include "mojo/public/interfaces/bindings/tests/serialization_test_structs.mojom
.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
17 | 19 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 TestArrayWarning(test_array.Pass(), | 220 TestArrayWarning(test_array.Pass(), |
219 mojo::internal::VALIDATION_ERROR_UNEXPECTED_ARRAY_HEADER, | 221 mojo::internal::VALIDATION_ERROR_UNEXPECTED_ARRAY_HEADER, |
220 &validate_params_2); | 222 &validate_params_2); |
221 } | 223 } |
222 | 224 |
223 } // namespace | 225 } // namespace |
224 } // namespace test | 226 } // namespace test |
225 } // namespace mojo | 227 } // namespace mojo |
226 | 228 |
227 #endif | 229 #endif |
OLD | NEW |