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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include "mojo/public/cpp/bindings/array.h" | 8 #include "mojo/public/cpp/bindings/array.h" |
6 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | 9 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
7 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | 10 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
8 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" | 11 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
9 #include "mojo/public/cpp/bindings/lib/validate_params.h" | 12 #include "mojo/public/cpp/bindings/lib/validate_params.h" |
10 #include "mojo/public/cpp/bindings/map.h" | 13 #include "mojo/public/cpp/bindings/map.h" |
11 #include "mojo/public/cpp/bindings/string.h" | 14 #include "mojo/public/cpp/bindings/string.h" |
12 #include "mojo/public/cpp/bindings/tests/container_test_util.h" | 15 #include "mojo/public/cpp/bindings/tests/container_test_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 | 17 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 ASSERT_EQ(1u, deserialized_array.size()); | 310 ASSERT_EQ(1u, deserialized_array.size()); |
308 ASSERT_EQ(1u, deserialized_array[0].size()); | 311 ASSERT_EQ(1u, deserialized_array[0].size()); |
309 ASSERT_FALSE(deserialized_array[0].at("hello world")[0]); | 312 ASSERT_FALSE(deserialized_array[0].at("hello world")[0]); |
310 ASSERT_TRUE(deserialized_array[0].at("hello world")[1]); | 313 ASSERT_TRUE(deserialized_array[0].at("hello world")[1]); |
311 } | 314 } |
312 } | 315 } |
313 | 316 |
314 } // namespace | 317 } // namespace |
315 } // namespace test | 318 } // namespace test |
316 } // namespace mojo | 319 } // namespace mojo |
OLD | NEW |