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

Side by Side Diff: chrome/test/remoting/remote_desktop_browsertest.cc

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/test/remoting/remote_desktop_browsertest.h" 5 #include "chrome/test/remoting/remote_desktop_browsertest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 SimulateKeyPressWithCode(key, code, keyboard_code, false, shift, false, 435 SimulateKeyPressWithCode(key, code, keyboard_code, false, shift, false,
436 false); 436 false);
437 } 437 }
438 438
439 void RemoteDesktopBrowserTest::SimulateStringInput(const std::string& input) { 439 void RemoteDesktopBrowserTest::SimulateStringInput(const std::string& input) {
440 for (size_t i = 0; i < input.length(); ++i) 440 for (size_t i = 0; i < input.length(); ++i)
441 SimulateCharInput(input[i]); 441 SimulateCharInput(input[i]);
442 } 442 }
443 443
444 void RemoteDesktopBrowserTest::SimulateMouseLeftClickAt(int x, int y) { 444 void RemoteDesktopBrowserTest::SimulateMouseLeftClickAt(int x, int y) {
445 SimulateMouseClickAt(0, blink::WebMouseEvent::ButtonLeft, x, y); 445 SimulateMouseClickAt(0, blink::WebMouseEvent::Button::Left, x, y);
446 } 446 }
447 447
448 void RemoteDesktopBrowserTest::SimulateMouseClickAt( 448 void RemoteDesktopBrowserTest::SimulateMouseClickAt(
449 int modifiers, blink::WebMouseEvent::Button button, int x, int y) { 449 int modifiers, blink::WebMouseEvent::Button button, int x, int y) {
450 // TODO(weitaosu): The coordinate translation doesn't work correctly for 450 // TODO(weitaosu): The coordinate translation doesn't work correctly for
451 // apps v2. 451 // apps v2.
452 ExecuteScript( 452 ExecuteScript(
453 "var clientPluginElement = " 453 "var clientPluginElement = "
454 "document.getElementById('session-client-plugin');" 454 "document.getElementById('session-client-plugin');"
455 "var clientPluginRect = clientPluginElement.getBoundingClientRect();"); 455 "var clientPluginRect = clientPluginElement.getBoundingClientRect();");
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 ConditionalTimeoutWaiter homeWaiter( 956 ConditionalTimeoutWaiter homeWaiter(
957 base::TimeDelta::FromSeconds(5), 957 base::TimeDelta::FromSeconds(5),
958 base::TimeDelta::FromMilliseconds(500), 958 base::TimeDelta::FromMilliseconds(500),
959 base::Bind(&RemoteDesktopBrowserTest::IsAppModeEqualTo, 959 base::Bind(&RemoteDesktopBrowserTest::IsAppModeEqualTo,
960 base::Unretained(this), 960 base::Unretained(this),
961 "remoting.AppMode.HOME")); 961 "remoting.AppMode.HOME"));
962 EXPECT_TRUE(homeWaiter.Wait()); 962 EXPECT_TRUE(homeWaiter.Wait());
963 } 963 }
964 964
965 } // namespace remoting 965 } // namespace remoting
OLDNEW
« no previous file with comments | « chrome/browser/unload_browsertest.cc ('k') | components/printing/test/print_web_view_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698