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 "mojo/public/cpp/bindings/array.h" | |
6 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | |
7 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | |
8 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" | |
9 #include "mojo/public/cpp/bindings/lib/validate_params.h" | |
10 #include "mojo/public/cpp/bindings/map.h" | |
11 #include "mojo/public/cpp/bindings/string.h" | |
12 #include "mojo/public/cpp/bindings/tests/container_test_util.h" | |
13 #include "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" |
| 7 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_serialization.
h" |
| 8 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_internal.h" |
| 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/fixed_buffer.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validate_params.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/map.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" |
| 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/tests/container_test_uti
l.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 using mojo::internal::Array_Data; | 20 using mojo::internal::Array_Data; |
21 using mojo::internal::ArrayValidateParams; | 21 using mojo::internal::ArrayValidateParams; |
22 using mojo::internal::FixedBufferForTesting; | 22 using mojo::internal::FixedBufferForTesting; |
23 using mojo::internal::Map_Data; | 23 using mojo::internal::Map_Data; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 ASSERT_EQ(1u, deserialized_array.size()); | 307 ASSERT_EQ(1u, deserialized_array.size()); |
308 ASSERT_EQ(1u, deserialized_array[0].size()); | 308 ASSERT_EQ(1u, deserialized_array[0].size()); |
309 ASSERT_FALSE(deserialized_array[0].at("hello world")[0]); | 309 ASSERT_FALSE(deserialized_array[0].at("hello world")[0]); |
310 ASSERT_TRUE(deserialized_array[0].at("hello world")[1]); | 310 ASSERT_TRUE(deserialized_array[0].at("hello world")[1]); |
311 } | 311 } |
312 } | 312 } |
313 | 313 |
314 } // namespace | 314 } // namespace |
315 } // namespace test | 315 } // namespace test |
316 } // namespace mojo | 316 } // namespace mojo |
OLD | NEW |