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_serialization.h" | 7 #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/bindings_internal.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/lib/map_serialization.h" | 10 #include "mojo/public/cpp/bindings/lib/map_serialization.h" |
10 #include "mojo/public/cpp/bindings/lib/validate_params.h" | 11 #include "mojo/public/cpp/bindings/lib/validate_params.h" |
11 #include "mojo/public/cpp/bindings/map.h" | 12 #include "mojo/public/cpp/bindings/map.h" |
12 #include "mojo/public/cpp/bindings/string.h" | 13 #include "mojo/public/cpp/bindings/string.h" |
13 #include "mojo/public/cpp/bindings/tests/container_test_util.h" | 14 #include "mojo/public/cpp/bindings/tests/container_test_util.h" |
14 #include "mojo/public/interfaces/bindings/tests/rect.mojom.h" | 15 #include "mojo/public/interfaces/bindings/tests/rect.mojom.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 using mojo::internal::Array_Data; | 22 using mojo::internal::Array_Data; |
23 using mojo::internal::ArrayValidateParams; | 23 using mojo::internal::ArrayValidateParams; |
24 using mojo::internal::FixedBufferForTesting; | 24 using mojo::internal::FixedBufferForTesting; |
25 using mojo::internal::Map_Data; | 25 using mojo::internal::Map_Data; |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 EXPECT_FALSE(map2[1].is_null()); | 420 EXPECT_FALSE(map2[1].is_null()); |
421 EXPECT_EQ(1, map2[1]->x); | 421 EXPECT_EQ(1, map2[1]->x); |
422 EXPECT_EQ(2, map2[1]->y); | 422 EXPECT_EQ(2, map2[1]->y); |
423 EXPECT_EQ(3, map2[1]->width); | 423 EXPECT_EQ(3, map2[1]->width); |
424 EXPECT_EQ(4, map2[1]->height); | 424 EXPECT_EQ(4, map2[1]->height); |
425 } | 425 } |
426 | 426 |
427 } // namespace | 427 } // namespace |
428 } // namespace test | 428 } // namespace test |
429 } // namespace mojo | 429 } // namespace mojo |
OLD | NEW |