OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/sync_driver/device_count_metrics_provider.h" | 5 #include "components/sync/driver/device_count_metrics_provider.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/test/histogram_tester.h" | 12 #include "base/test/histogram_tester.h" |
13 #include "components/sync_driver/device_info.h" | 13 #include "components/sync/driver/device_info.h" |
14 #include "components/sync_driver/device_info_tracker.h" | 14 #include "components/sync/driver/device_info_tracker.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace sync_driver { | 17 namespace sync_driver { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 class FakeTracker : public DeviceInfoTracker { | 21 class FakeTracker : public DeviceInfoTracker { |
22 public: | 22 public: |
23 explicit FakeTracker(const int count) : count_(count) {} | 23 explicit FakeTracker(const int count) : count_(count) {} |
24 | 24 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 TEST_F(DeviceCountMetricsProviderTest, VeryLarge) { | 97 TEST_F(DeviceCountMetricsProviderTest, VeryLarge) { |
98 AddTracker(123456789); | 98 AddTracker(123456789); |
99 TestProvider(100); | 99 TestProvider(100); |
100 } | 100 } |
101 | 101 |
102 } // namespace | 102 } // namespace |
103 | 103 |
104 } // namespace sync_driver | 104 } // namespace sync_driver |
OLD | NEW |