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

Side by Side Diff: remoting/test/protocol_perftest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 <utility> 5 #include <utility>
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 base::Thread::Options(base::MessageLoop::TYPE_IO, 0)); 116 base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
117 capture_thread_.Start(); 117 capture_thread_.Start();
118 encode_thread_.Start(); 118 encode_thread_.Start();
119 decode_thread_.Start(); 119 decode_thread_.Start();
120 } 120 }
121 121
122 virtual ~ProtocolPerfTest() { 122 virtual ~ProtocolPerfTest() {
123 host_thread_.task_runner()->DeleteSoon(FROM_HERE, host_.release()); 123 host_thread_.task_runner()->DeleteSoon(FROM_HERE, host_.release());
124 host_thread_.task_runner()->DeleteSoon(FROM_HERE, 124 host_thread_.task_runner()->DeleteSoon(FROM_HERE,
125 host_signaling_.release()); 125 host_signaling_.release());
126 message_loop_.RunUntilIdle(); 126 base::RunLoop().RunUntilIdle();
127 } 127 }
128 128
129 // ClientUserInterface interface. 129 // ClientUserInterface interface.
130 void OnConnectionState(protocol::ConnectionToHost::State state, 130 void OnConnectionState(protocol::ConnectionToHost::State state,
131 protocol::ErrorCode error) override { 131 protocol::ErrorCode error) override {
132 if (state == protocol::ConnectionToHost::CONNECTED) { 132 if (state == protocol::ConnectionToHost::CONNECTED) {
133 client_connected_ = true; 133 client_connected_ = true;
134 if (host_connected_) 134 if (host_connected_)
135 connecting_loop_->Quit(); 135 connecting_loop_->Quit();
136 } 136 }
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 692
693 TEST_P(ProtocolPerfTest, ScrollPerformanceIce) { 693 TEST_P(ProtocolPerfTest, ScrollPerformanceIce) {
694 MeasureScrollPerformance(false); 694 MeasureScrollPerformance(false);
695 } 695 }
696 696
697 TEST_P(ProtocolPerfTest, ScrollPerformanceWebrtc) { 697 TEST_P(ProtocolPerfTest, ScrollPerformanceWebrtc) {
698 MeasureScrollPerformance(true); 698 MeasureScrollPerformance(true);
699 } 699 }
700 700
701 } // namespace remoting 701 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/ice_transport_unittest.cc ('k') | remoting/test/test_chromoting_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698