| 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/interfaces/bindings/tests/test_structs.mojom.h" | 6 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | |
| 7 | 7 |
| 8 namespace mojo { | 8 namespace mojo { |
| 9 namespace test { | 9 namespace test { |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 RectPtr CreateRect() { | 13 RectPtr CreateRect() { |
| 14 RectPtr r = Rect::New(); | 14 RectPtr r = Rect::New(); |
| 15 r->x = 1; | 15 r->x = 1; |
| 16 r->y = 2; | 16 r->y = 2; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 m2.at("foo")->rects.resize(1); | 103 m2.at("foo")->rects.resize(1); |
| 104 m2.at("foo")->rects[0]->width = 1; | 104 m2.at("foo")->rects[0]->width = 1; |
| 105 EXPECT_FALSE(m1.Equals(m2)); | 105 EXPECT_FALSE(m1.Equals(m2)); |
| 106 | 106 |
| 107 m2 = m1.Clone(); | 107 m2 = m1.Clone(); |
| 108 EXPECT_TRUE(m1.Equals(m2)); | 108 EXPECT_TRUE(m1.Equals(m2)); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // test | 111 } // test |
| 112 } // mojo | 112 } // mojo |
| OLD | NEW |