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

Unified Diff: components/exo/gamepad_unittest.cc

Issue 2572323002: Delete WebGamepads::length. (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/gamepad.cc ('k') | components/test_runner/gamepad_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/gamepad_unittest.cc
diff --git a/components/exo/gamepad_unittest.cc b/components/exo/gamepad_unittest.cc
index 34a7e165bd818587e15d054ae9ff1a129252887f..560c7e43c5173cf346c327daf2875491b7adf0c3 100644
--- a/components/exo/gamepad_unittest.cc
+++ b/components/exo/gamepad_unittest.cc
@@ -105,7 +105,6 @@ TEST_F(GamepadTest, OnStateChange) {
// Gamepad connected.
EXPECT_CALL(delegate, OnStateChange(true)).Times(1);
blink::WebGamepads gamepad_connected;
- gamepad_connected.length = 1;
gamepad_connected.items[0].connected = true;
gamepad_connected.items[0].timestamp = 1;
SetDataAndPostToDelegate(gamepad_connected);
@@ -134,7 +133,6 @@ TEST_F(GamepadTest, OnAxis) {
InitializeGamepad(&delegate);
blink::WebGamepads axis_moved;
- axis_moved.length = 1;
axis_moved.items[0].connected = true;
axis_moved.items[0].timestamp = 1;
axis_moved.items[0].axesLength = 1;
@@ -164,7 +162,6 @@ TEST_F(GamepadTest, OnButton) {
InitializeGamepad(&delegate);
blink::WebGamepads axis_moved;
- axis_moved.length = 1;
axis_moved.items[0].connected = true;
axis_moved.items[0].timestamp = 1;
axis_moved.items[0].buttonsLength = 1;
« no previous file with comments | « components/exo/gamepad.cc ('k') | components/test_runner/gamepad_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698