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/lib/value_traits.h" |
| 6 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h" |
5 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
6 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/value_traits.h" | |
7 #include "third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_struct
s.mojom.h" | |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace test { | 10 namespace test { |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 RectPtr CreateRect() { | 14 RectPtr CreateRect() { |
15 RectPtr r = Rect::New(); | 15 RectPtr r = Rect::New(); |
16 r->x = 1; | 16 r->x = 1; |
17 r->y = 2; | 17 r->y = 2; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 EXPECT_FALSE(RequestValueTraits::Equals(req1, req2)); | 149 EXPECT_FALSE(RequestValueTraits::Equals(req1, req2)); |
150 | 150 |
151 SomeInterfacePtr inf2; | 151 SomeInterfacePtr inf2; |
152 req2 = GetProxy(&inf2); | 152 req2 = GetProxy(&inf2); |
153 | 153 |
154 EXPECT_FALSE(RequestValueTraits::Equals(req1, req2)); | 154 EXPECT_FALSE(RequestValueTraits::Equals(req1, req2)); |
155 } | 155 } |
156 | 156 |
157 } // test | 157 } // test |
158 } // mojo | 158 } // mojo |
OLD | NEW |