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

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

Issue 1560293002: Rename KEY_ constants to avoid conflict with <linux/input.h> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments (Wez) Created 4 years, 11 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 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
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
OLDNEW
« no previous file with comments | « remoting/client/normalizing_input_filter_mac_unittest.cc ('k') | ui/base/ime/chromeos/character_composer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698