OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROMEOS_SYSTEM_FAKE_STATISTICS_PROVIDER_H_ | 5 #ifndef CHROMEOS_SYSTEM_FAKE_STATISTICS_PROVIDER_H_ |
6 #define CHROMEOS_SYSTEM_FAKE_STATISTICS_PROVIDER_H_ | 6 #define CHROMEOS_SYSTEM_FAKE_STATISTICS_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "chromeos/system/statistics_provider.h" | 12 #include "chromeos/system/statistics_provider.h" |
12 | 13 |
13 namespace chromeos { | 14 namespace chromeos { |
14 namespace system { | 15 namespace system { |
15 | 16 |
16 // A fake StatisticsProvider implementation that is useful in tests. | 17 // A fake StatisticsProvider implementation that is useful in tests. |
17 class FakeStatisticsProvider : public StatisticsProvider { | 18 class FakeStatisticsProvider : public StatisticsProvider { |
18 public: | 19 public: |
19 FakeStatisticsProvider(); | 20 FakeStatisticsProvider(); |
20 ~FakeStatisticsProvider() override; | 21 ~FakeStatisticsProvider() override; |
(...skipping 27 matching lines...) Expand all Loading... |
48 ~ScopedFakeStatisticsProvider() override; | 49 ~ScopedFakeStatisticsProvider() override; |
49 | 50 |
50 private: | 51 private: |
51 DISALLOW_COPY_AND_ASSIGN(ScopedFakeStatisticsProvider); | 52 DISALLOW_COPY_AND_ASSIGN(ScopedFakeStatisticsProvider); |
52 }; | 53 }; |
53 | 54 |
54 } // namespace system | 55 } // namespace system |
55 } // namespace chromeos | 56 } // namespace chromeos |
56 | 57 |
57 #endif // CHROMEOS_SYSTEM_FAKE_STATISTICS_PROVIDER_H_ | 58 #endif // CHROMEOS_SYSTEM_FAKE_STATISTICS_PROVIDER_H_ |
OLD | NEW |