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

Side by Side Diff: components/metrics/profiler/tracking_synchronizer_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/macros.h"
6 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
7 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
8 #include "base/tracked_objects.h" 9 #include "base/tracked_objects.h"
9 #include "components/metrics/profiler/tracking_synchronizer.h" 10 #include "components/metrics/profiler/tracking_synchronizer.h"
10 #include "components/metrics/profiler/tracking_synchronizer_delegate.h" 11 #include "components/metrics/profiler/tracking_synchronizer_delegate.h"
11 #include "components/metrics/profiler/tracking_synchronizer_observer.h" 12 #include "components/metrics/profiler/tracking_synchronizer_observer.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 using tracked_objects::ProcessDataPhaseSnapshot; 15 using tracked_objects::ProcessDataPhaseSnapshot;
15 using tracked_objects::TaskSnapshot; 16 using tracked_objects::TaskSnapshot;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 profiler_data.phased_snapshots[1] = snapshot1; 140 profiler_data.phased_snapshots[1] = snapshot1;
140 profiler_data.process_id = 239; 141 profiler_data.process_id = 239;
141 142
142 clock->Advance(base::TimeDelta::FromMilliseconds(444)); 143 clock->Advance(base::TimeDelta::FromMilliseconds(444));
143 TestObserver test_observer; 144 TestObserver test_observer;
144 tracking_synchronizer->SendData( 145 tracking_synchronizer->SendData(
145 profiler_data, ProfilerEventProto::TrackedObject::PLUGIN, &test_observer); 146 profiler_data, ProfilerEventProto::TrackedObject::PLUGIN, &test_observer);
146 } 147 }
147 148
148 } // namespace metrics 149 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/profiler/tracking_synchronizer_observer.h ('k') | components/metrics/serialization/serialization_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698