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

Unified Diff: chromeos/system/mock_statistics_provider.h

Issue 25112004: Move statistics_provider to chromeos/system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 7 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/chromeos.gyp ('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/chrome/browser/chromeos/system/mock_statistics_provider.h b/chromeos/system/mock_statistics_provider.h
similarity index 61%
rename from chrome/browser/chromeos/system/mock_statistics_provider.h
rename to chromeos/system/mock_statistics_provider.h
index bdd323545904605a4ec4341c505edf7ed032ff95..9571fea75acb8e2cd2b7e90afa923b4790eb5ea5 100644
--- a/chrome/browser/chromeos/system/mock_statistics_provider.h
+++ b/chromeos/system/mock_statistics_provider.h
@@ -2,28 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
-#define CHROME_BROWSER_CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
+#ifndef CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
+#define CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
#include "base/basictypes.h"
-#include "chrome/browser/chromeos/system/statistics_provider.h"
+#include "chromeos/system/statistics_provider.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
namespace system {
-class MockStatisticsProvider : public system::StatisticsProvider {
+class CHROMEOS_EXPORT MockStatisticsProvider : public StatisticsProvider {
public:
MockStatisticsProvider();
virtual ~MockStatisticsProvider();
- MOCK_METHOD0(Init, void());
- MOCK_METHOD0(StartLoadingMachineStatistics, void());
- MOCK_METHOD0(LoadOemManifest, void());
+ 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);
@@ -32,4 +33,4 @@ class MockStatisticsProvider : public system::StatisticsProvider {
} // namespace system
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
+#endif // CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/system/mock_statistics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698