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

Unified Diff: chrome/browser/chromeos/system/mock_statistics_provider.h

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 5 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
Index: chrome/browser/chromeos/system/mock_statistics_provider.h
diff --git a/chrome/browser/chromeos/system/mock_statistics_provider.h b/chrome/browser/chromeos/system/mock_statistics_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..e0acd0a6ecf3a6d9fea08bcac21e753ef8f5e648
--- /dev/null
+++ b/chrome/browser/chromeos/system/mock_statistics_provider.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
+#define CHROME_BROWSER_CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "chrome/browser/chromeos/system/statistics_provider.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+namespace system {
+
+class MockStatisticsProvider : public system::StatisticsProvider {
+ public:
+ MockStatisticsProvider();
+ virtual ~MockStatisticsProvider();
+
+ MOCK_METHOD2(GetMachineStatistic, bool(const std::string& name,
+ std::string* result));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockStatisticsProvider);
+};
+
+} // namespace system
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_MOCK_STATISTICS_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698