| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "gtest/gtest.h" |
| 7 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" | 8 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | |
| 9 | 9 |
| 10 using sample::SampleInterface; | 10 using sample::SampleInterface; |
| 11 using sample::SampleInterface_SampleMethod1_Params; | 11 using sample::SampleInterface_SampleMethod1_Params; |
| 12 using sample::SampleInterface_SampleMethod1_ResponseParams; | 12 using sample::SampleInterface_SampleMethod1_ResponseParams; |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 namespace test { | 15 namespace test { |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // Test the validity of the generated ordinals for interface methods. | 18 // Test the validity of the generated ordinals for interface methods. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 auto* params_data = reinterpret_cast< | 69 auto* params_data = reinterpret_cast< |
| 70 sample::internal::SampleInterface_SampleMethod1_ResponseParams_Data*>( | 70 sample::internal::SampleInterface_SampleMethod1_ResponseParams_Data*>( |
| 71 bytes.get()); | 71 bytes.get()); |
| 72 EXPECT_EQ(0UL, params_data->out1.offset); | 72 EXPECT_EQ(0UL, params_data->out1.offset); |
| 73 EXPECT_EQ(sample::Enum::VALUE, static_cast<sample::Enum>(params_data->out2)); | 73 EXPECT_EQ(sample::Enum::VALUE, static_cast<sample::Enum>(params_data->out2)); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace | 76 } // namespace |
| 77 } // namespace test | 77 } // namespace test |
| 78 } // namespace mojo | 78 } // namespace mojo |
| OLD | NEW |