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 "chrome/browser/metrics/perf/perf_provider_chromeos.h" | 5 #include "chrome/browser/metrics/perf/perf_provider_chromeos.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
16 #include "base/test/test_simple_task_runner.h" | 16 #include "base/test/test_simple_task_runner.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "chrome/browser/metrics/perf/windowed_incognito_observer.h" | 18 #include "chrome/browser/metrics/perf/windowed_incognito_observer.h" |
19 #include "chromeos/dbus/dbus_thread_manager.h" | 19 #include "chromeos/dbus/dbus_thread_manager.h" |
20 #include "chromeos/login/login_state.h" | 20 #include "chromeos/login/login_state.h" |
21 #include "components/metrics/proto/sampled_profile.pb.h" | 21 #include "components/metrics/proto/sampled_profile.pb.h" |
22 #include "components/variations/variations_associated_data.h" | 22 #include "components/variations/variations_associated_data.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 namespace metrics { | 25 namespace metrics { |
26 | 26 |
27 namespace { | 27 namespace { |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 // that triggers collection. | 862 // that triggers collection. |
863 | 863 |
864 pm_observer.SuspendDone(base::TimeDelta::FromMinutes(10)); | 864 pm_observer.SuspendDone(base::TimeDelta::FromMinutes(10)); |
865 EXPECT_FALSE(perf_provider.timer().IsRunning()); | 865 EXPECT_FALSE(perf_provider.timer().IsRunning()); |
866 | 866 |
867 perf_provider.OnSessionRestoreDone(100); | 867 perf_provider.OnSessionRestoreDone(100); |
868 EXPECT_FALSE(perf_provider.timer().IsRunning()); | 868 EXPECT_FALSE(perf_provider.timer().IsRunning()); |
869 } | 869 } |
870 | 870 |
871 } // namespace metrics | 871 } // namespace metrics |
OLD | NEW |