| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |