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_internal.h" |
| 7 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
| 8 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
| 9 #include "mojo/public/cpp/bindings/tests/container_test_util.h" |
| 10 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h" |
5 #include "testing/gtest/include/gtest/gtest.h" | 11 #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_internal.h" | |
8 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_serialization.
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/tests/container_test_uti
l.h" | |
11 #include "third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_struct
s.mojom.h" | |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace test { | 14 namespace test { |
15 namespace { | 15 namespace { |
16 | 16 |
17 using mojo::internal::Array_Data; | 17 using mojo::internal::Array_Data; |
18 using mojo::internal::ArrayValidateParams; | 18 using mojo::internal::ArrayValidateParams; |
19 using mojo::internal::FixedBufferForTesting; | 19 using mojo::internal::FixedBufferForTesting; |
20 using mojo::internal::String_Data; | 20 using mojo::internal::String_Data; |
21 | 21 |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 EXPECT_TRUE(array[i].moved()); | 429 EXPECT_TRUE(array[i].moved()); |
430 EXPECT_EQ(value_ptrs[i], array[i].ptr()); | 430 EXPECT_EQ(value_ptrs[i], array[i].ptr()); |
431 } | 431 } |
432 array.reset(); | 432 array.reset(); |
433 EXPECT_EQ(0u, MoveOnlyType::num_instances()); | 433 EXPECT_EQ(0u, MoveOnlyType::num_instances()); |
434 } | 434 } |
435 | 435 |
436 } // namespace | 436 } // namespace |
437 } // namespace test | 437 } // namespace test |
438 } // namespace mojo | 438 } // namespace mojo |
OLD | NEW |