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

Side by Side Diff: components/sync/device_info/device_count_metrics_provider_unittest.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 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/device_info/device_count_metrics_provider.h" 5 #include "components/sync/device_info/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/device_info/device_info.h" 13 #include "components/sync/device_info/device_info.h"
14 #include "components/sync/device_info/device_info_tracker.h" 14 #include "components/sync/device_info/device_info_tracker.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace syncer { 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
25 // DeviceInfoTracker 25 // DeviceInfoTracker
26 bool IsSyncing() const override { return false; } 26 bool IsSyncing() const override { return false; }
27 std::unique_ptr<DeviceInfo> GetDeviceInfo( 27 std::unique_ptr<DeviceInfo> GetDeviceInfo(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 TestProvider(0); 94 TestProvider(0);
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 syncer 104 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/device_info/device_count_metrics_provider.cc ('k') | components/sync/device_info/device_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698