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 "remoting/test/app_remoting_latency_test_fixture.h" | 5 #include "remoting/test/app_remoting_latency_test_fixture.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 dom_codes.push_back(ui::DomCode::F4); | 155 dom_codes.push_back(ui::DomCode::F4); |
156 PressAndReleaseKeyCombination(dom_codes); | 156 PressAndReleaseKeyCombination(dom_codes); |
157 | 157 |
158 run_loop_.reset(new base::RunLoop()); | 158 run_loop_.reset(new base::RunLoop()); |
159 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( | 159 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
160 FROM_HERE, run_loop_->QuitClosure(), base::TimeDelta::FromSeconds(2)); | 160 FROM_HERE, run_loop_->QuitClosure(), base::TimeDelta::FromSeconds(2)); |
161 run_loop_->Run(); | 161 run_loop_->Run(); |
162 | 162 |
163 // Press 'N' to choose not save and wait for 1 second for the input to be | 163 // Press 'N' to choose not save and wait for 1 second for the input to be |
164 // delivered and processed. | 164 // delivered and processed. |
165 PressAndReleaseKey(ui::DomCode::KEY_N); | 165 PressAndReleaseKey(ui::DomCode::US_N); |
166 | 166 |
167 run_loop_.reset(new base::RunLoop()); | 167 run_loop_.reset(new base::RunLoop()); |
168 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( | 168 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
169 FROM_HERE, run_loop_->QuitClosure(), base::TimeDelta::FromSeconds(2)); | 169 FROM_HERE, run_loop_->QuitClosure(), base::TimeDelta::FromSeconds(2)); |
170 run_loop_->Run(); | 170 run_loop_->Run(); |
171 run_loop_.reset(); | 171 run_loop_.reset(); |
172 } | 172 } |
173 | 173 |
174 } // namespace test | 174 } // namespace test |
175 } // namespace remoting | 175 } // namespace remoting |
OLD | NEW |