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

Side by Side Diff: content/common/input/input_param_traits_unittest.cc

Issue 2953073002: LatencyInfo trace_id_ no longer dependent on sequence_number. (Closed)
Patch Set: Address nit. Created 3 years, 5 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 "content/common/input/input_param_traits.h" 5 #include "content/common/input/input_param_traits.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 InputEvent event_out; 193 InputEvent event_out;
194 base::PickleIterator iter(msg); 194 base::PickleIterator iter(msg);
195 EXPECT_FALSE(IPC::ReadParam(&msg, &iter, &event_out)); 195 EXPECT_FALSE(IPC::ReadParam(&msg, &iter, &event_out));
196 } 196 }
197 197
198 TEST_F(InputParamTraitsTest, InitializedEvents) { 198 TEST_F(InputParamTraitsTest, InitializedEvents) {
199 InputEvents events; 199 InputEvents events;
200 200
201 ui::LatencyInfo latency; 201 ui::LatencyInfo latency;
202 latency.set_trace_id(5);
202 203
203 blink::WebKeyboardEvent key_event(blink::WebInputEvent::kRawKeyDown, 204 blink::WebKeyboardEvent key_event(blink::WebInputEvent::kRawKeyDown,
204 blink::WebInputEvent::kNoModifiers, 205 blink::WebInputEvent::kNoModifiers,
205 blink::WebInputEvent::kTimeStampForTesting); 206 blink::WebInputEvent::kTimeStampForTesting);
206 key_event.native_key_code = 5; 207 key_event.native_key_code = 5;
207 events.push_back(base::MakeUnique<InputEvent>(key_event, latency)); 208 events.push_back(base::MakeUnique<InputEvent>(key_event, latency));
208 209
209 blink::WebMouseWheelEvent wheel_event( 210 blink::WebMouseWheelEvent wheel_event(
210 blink::WebInputEvent::kMouseWheel, blink::WebInputEvent::kNoModifiers, 211 blink::WebInputEvent::kMouseWheel, blink::WebInputEvent::kNoModifiers,
211 blink::WebInputEvent::kTimeStampForTesting); 212 blink::WebInputEvent::kTimeStampForTesting);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 361
361 ASSERT_EQ(SyntheticGestureParams::POINTER_ACTION_LIST, 362 ASSERT_EQ(SyntheticGestureParams::POINTER_ACTION_LIST,
362 gesture_params->GetGestureType()); 363 gesture_params->GetGestureType());
363 SyntheticGesturePacket packet_in; 364 SyntheticGesturePacket packet_in;
364 packet_in.set_gesture_params(std::move(gesture_params)); 365 packet_in.set_gesture_params(std::move(gesture_params));
365 Verify(packet_in); 366 Verify(packet_in);
366 } 367 }
367 368
368 } // namespace 369 } // namespace
369 } // namespace content 370 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698