Index: ui/latency_info/ipc/latency_info_param_traits_unittest.cc |
diff --git a/ui/events/ipc/latency_info_param_traits_unittest.cc b/ui/latency_info/ipc/latency_info_param_traits_unittest.cc |
similarity index 84% |
rename from ui/events/ipc/latency_info_param_traits_unittest.cc |
rename to ui/latency_info/ipc/latency_info_param_traits_unittest.cc |
index 69224dace99ac529c4a265f8deff2fb7475a5b83..4a1f8dcfaf6be14e5f509114e7f8c49b822ca623 100644 |
--- a/ui/events/ipc/latency_info_param_traits_unittest.cc |
+++ b/ui/latency_info/ipc/latency_info_param_traits_unittest.cc |
@@ -7,8 +7,8 @@ |
#include "ipc/ipc_message_macros.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "ui/events/ipc/latency_info_param_traits.h" |
-#include "ui/events/ipc/latency_info_param_traits_macros.h" |
+#include "ui/latency_info/ipc/latency_info_param_traits.h" |
+#include "ui/latency_info/ipc/latency_info_param_traits_macros.h" |
namespace ui { |
@@ -20,13 +20,13 @@ TEST(LatencyInfoParamTraitsTest, Basic) { |
latency.AddLatencyNumber(INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 1234, 100); |
latency.AddLatencyNumber(INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, |
1234, 0); |
- EXPECT_TRUE(latency.AddInputCoordinate( |
- LatencyInfo::InputCoordinate(100, 200))); |
- EXPECT_TRUE(latency.AddInputCoordinate( |
- LatencyInfo::InputCoordinate(101, 201))); |
+ EXPECT_TRUE( |
+ latency.AddInputCoordinate(LatencyInfo::InputCoordinate(100, 200))); |
+ EXPECT_TRUE( |
+ latency.AddInputCoordinate(LatencyInfo::InputCoordinate(101, 201))); |
// Up to 2 InputCoordinate is allowed. |
- EXPECT_FALSE(latency.AddInputCoordinate( |
- LatencyInfo::InputCoordinate(102, 202))); |
+ EXPECT_FALSE( |
+ latency.AddInputCoordinate(LatencyInfo::InputCoordinate(102, 202))); |
EXPECT_EQ(100, latency.trace_id()); |
EXPECT_TRUE(latency.terminated()); |
@@ -48,13 +48,11 @@ TEST(LatencyInfoParamTraitsTest, Basic) { |
output.input_coordinates()[i].y); |
} |
- EXPECT_TRUE(output.FindLatency(INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, |
- 1234, |
+ EXPECT_TRUE(output.FindLatency(INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 1234, |
nullptr)); |
LatencyInfo::LatencyComponent rwh_comp; |
- EXPECT_TRUE(output.FindLatency(INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, |
- 1234, |
+ EXPECT_TRUE(output.FindLatency(INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 1234, |
&rwh_comp)); |
EXPECT_EQ(100, rwh_comp.sequence_number); |
EXPECT_EQ(1u, rwh_comp.event_count); |