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

Unified Diff: chromeos/system/mock_statistics_provider.h

Issue 644413003: Replace MockStatisticsProvider with FakeStatisticsProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add clarifying comments. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/system/fake_statistics_provider.cc ('k') | chromeos/system/mock_statistics_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/system/mock_statistics_provider.h
diff --git a/chromeos/system/mock_statistics_provider.h b/chromeos/system/mock_statistics_provider.h
deleted file mode 100644
index e0d4e61d3a5ccab387fc141fd2f602ff90b6d5fa..0000000000000000000000000000000000000000
--- a/chromeos/system/mock_statistics_provider.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
-#define CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
-
-#include "base/basictypes.h"
-#include "chromeos/system/statistics_provider.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-namespace system {
-
-class CHROMEOS_EXPORT MockStatisticsProvider : public StatisticsProvider {
- public:
- MockStatisticsProvider();
- virtual ~MockStatisticsProvider();
-
- MOCK_METHOD2(StartLoadingMachineStatistics, void(
- const scoped_refptr<base::TaskRunner>&,
- bool));
- MOCK_METHOD2(GetMachineStatistic, bool(const std::string& name,
- std::string* result));
- MOCK_METHOD2(GetMachineFlag, bool(const std::string& name,
- bool* result));
- MOCK_METHOD0(Shutdown, void());
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockStatisticsProvider);
-};
-
-} // namespace system
-} // namespace chromeos
-
-#endif // CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
« no previous file with comments | « chromeos/system/fake_statistics_provider.cc ('k') | chromeos/system/mock_statistics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698