| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 bool Accept(Message* message) override { | 248 bool Accept(Message* message) override { |
| 249 return connector_.Accept(message); | 249 return connector_.Accept(message); |
| 250 } | 250 } |
| 251 | 251 |
| 252 public: | 252 public: |
| 253 ValidationIntegrationTest* owner_; | 253 ValidationIntegrationTest* owner_; |
| 254 mojo::Connector connector_; | 254 mojo::Connector connector_; |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 void PumpMessages() { loop_.RunUntilIdle(); } | 257 void PumpMessages() { base::RunLoop().RunUntilIdle(); } |
| 258 | 258 |
| 259 TestMessageReceiver* test_message_receiver_; | 259 TestMessageReceiver* test_message_receiver_; |
| 260 ScopedMessagePipeHandle testee_endpoint_; | 260 ScopedMessagePipeHandle testee_endpoint_; |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 class IntegrationTestInterfaceImpl : public IntegrationTestInterface { | 263 class IntegrationTestInterfaceImpl : public IntegrationTestInterface { |
| 264 public: | 264 public: |
| 265 ~IntegrationTestInterfaceImpl() override {} | 265 ~IntegrationTestInterfaceImpl() override {} |
| 266 | 266 |
| 267 void Method0(BasicStructPtr param0, | 267 void Method0(BasicStructPtr param0, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(0))); | 490 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(0))); |
| 491 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(1))); | 491 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(1))); |
| 492 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(2))); | 492 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(2))); |
| 493 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(3))); | 493 EXPECT_TRUE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(3))); |
| 494 EXPECT_FALSE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(4))); | 494 EXPECT_FALSE(IsKnownEnumValue(static_cast<StructWithEnum::EnumWithin>(4))); |
| 495 } | 495 } |
| 496 | 496 |
| 497 } // namespace | 497 } // namespace |
| 498 } // namespace test | 498 } // namespace test |
| 499 } // namespace mojo | 499 } // namespace mojo |
| OLD | NEW |