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 "gtest/gtest.h" |
5 #include "mojo/public/cpp/bindings/array.h" | 6 #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_internal.h" |
7 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | 8 #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/lib/fixed_buffer.h" |
9 #include "mojo/public/cpp/bindings/tests/container_test_util.h" | 10 #include "mojo/public/cpp/bindings/tests/container_test_util.h" |
10 #include "mojo/public/cpp/bindings/tests/iterator_test_util.h" | 11 #include "mojo/public/cpp/bindings/tests/iterator_test_util.h" |
11 #include "mojo/public/interfaces/bindings/tests/test_arrays.mojom.h" | 12 #include "mojo/public/interfaces/bindings/tests/test_arrays.mojom.h" |
12 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h" | 13 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace test { | 16 namespace test { |
17 namespace { | 17 namespace { |
18 | 18 |
19 using mojo::internal::Array_Data; | 19 using mojo::internal::Array_Data; |
20 using mojo::internal::ArrayValidateParams; | 20 using mojo::internal::ArrayValidateParams; |
21 using mojo::internal::FixedBufferForTesting; | 21 using mojo::internal::FixedBufferForTesting; |
22 using mojo::internal::String_Data; | 22 using mojo::internal::String_Data; |
23 | 23 |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 EXPECT_EQ(1, array3[1]->x); | 815 EXPECT_EQ(1, array3[1]->x); |
816 EXPECT_EQ(2, array3[1]->y); | 816 EXPECT_EQ(2, array3[1]->y); |
817 EXPECT_EQ(3, array3[1]->width); | 817 EXPECT_EQ(3, array3[1]->width); |
818 EXPECT_EQ(4, array3[1]->height); | 818 EXPECT_EQ(4, array3[1]->height); |
819 } | 819 } |
820 } | 820 } |
821 | 821 |
822 } // namespace | 822 } // namespace |
823 } // namespace test | 823 } // namespace test |
824 } // namespace mojo | 824 } // namespace mojo |
OLD | NEW |