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 <algorithm> | 5 #include <algorithm> |
6 #include <ostream> | 6 #include <ostream> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "mojo/public/bindings/allocation_scope.h" | 9 #include "mojo/public/bindings/allocation_scope.h" |
10 #include "mojo/public/environment/environment.h" | 10 #include "mojo/public/environment/environment.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 EXPECT_EQ(2u, full.people()[0].names().size()); | 338 EXPECT_EQ(2u, full.people()[0].names().size()); |
339 EXPECT_EQ("Bob", full.people()[0].names()[0].To<std::string>()); | 339 EXPECT_EQ("Bob", full.people()[0].names()[0].To<std::string>()); |
340 EXPECT_EQ("Bobby", full.people()[0].names()[1].To<std::string>()); | 340 EXPECT_EQ("Bobby", full.people()[0].names()[1].To<std::string>()); |
341 EXPECT_EQ(6*12, full.people()[0].height()); | 341 EXPECT_EQ(6*12, full.people()[0].height()); |
342 | 342 |
343 EXPECT_EQ(7, full.point().x()); | 343 EXPECT_EQ(7, full.point().x()); |
344 EXPECT_EQ(15, full.point().y()); | 344 EXPECT_EQ(15, full.point().y()); |
345 | 345 |
346 EXPECT_EQ(1u, full.shape_masks().size()); | 346 EXPECT_EQ(1u, full.shape_masks().size()); |
347 EXPECT_EQ(1 << imported::SHAPE_RECTANGLE, full.shape_masks()[0]); | 347 EXPECT_EQ(1 << imported::SHAPE_RECTANGLE, full.shape_masks()[0]); |
| 348 |
| 349 EXPECT_EQ(imported::SHAPE_RECTANGLE, full.thing().shape()); |
| 350 EXPECT_EQ(imported::COLOR_RED, full.thing().color()); |
348 } | 351 } |
349 | 352 |
350 } // namespace sample | 353 } // namespace sample |
OLD | NEW |