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

Side by Side Diff: ui/events/latency_info_unittest.cc

Issue 24257011: Revert "Revert 224496 "Move ui/base/latency_info* to ui/events"" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gyp bustage Created 7 years, 3 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
« no previous file with comments | « ui/events/latency_info.cc ('k') | ui/surface/accelerated_surface_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/base/latency_info.h" 5 #include "ui/events/latency_info.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 TEST(LatencyInfoTest, AddTwoSeparateEvent) { 11 TEST(LatencyInfoTest, AddTwoSeparateEvent) {
12 LatencyInfo info; 12 LatencyInfo info;
13 info.AddLatencyNumberWithTimestamp(INPUT_EVENT_LATENCY_RWH_COMPONENT, 13 info.AddLatencyNumberWithTimestamp(INPUT_EVENT_LATENCY_RWH_COMPONENT,
14 0, 14 0,
15 1, 15 1,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 30, 133 30,
134 base::TimeTicks::FromInternalValue(100), 134 base::TimeTicks::FromInternalValue(100),
135 2); 135 2);
136 136
137 EXPECT_EQ(info.latency_components.size(), 1u); 137 EXPECT_EQ(info.latency_components.size(), 1u);
138 info.Clear(); 138 info.Clear();
139 EXPECT_EQ(info.latency_components.size(), 0u); 139 EXPECT_EQ(info.latency_components.size(), 0u);
140 } 140 }
141 141
142 } // namespace ui 142 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/latency_info.cc ('k') | ui/surface/accelerated_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698