Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: mojo/public/cpp/bindings/tests/validation_unittest.cc

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/union_unittest.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698