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

Unified Diff: ui/latency_info/ipc/latency_info_param_traits_unittest.cc

Issue 1871233002: Move LatencyInfo to ui/latency_info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some more gyp issues Created 4 years, 8 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 | « ui/latency_info/ipc/latency_info_param_traits_macros.h ('k') | ui/latency_info/latency_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ui/latency_info/ipc/latency_info_param_traits_macros.h ('k') | ui/latency_info/latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698