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

Side by Side Diff: chrome/browser/chromeos/mock_system_access.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/helper.cc ('k') | chrome/browser/chromeos/mock_system_access.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_MOCK_SYSTEM_ACCESS_H_
6 #define CHROME_BROWSER_CHROMEOS_MOCK_SYSTEM_ACCESS_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "chrome/browser/chromeos/system_access.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace chromeos {
14
15 class MockSystemAccess : public SystemAccess {
16 public:
17 MockSystemAccess();
18 virtual ~MockSystemAccess();
19
20 MOCK_METHOD0(GetTimezone, const icu::TimeZone&());
21 MOCK_METHOD1(SetTimezone, void(const icu::TimeZone& timezone));
22 MOCK_METHOD2(GetMachineStatistic, bool(const std::string& name,
23 std::string* result));
24 MOCK_METHOD1(AddObserver, void(Observer* observer));
25 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
26 MOCK_METHOD4(RequestSyslogs, Handle(bool compress_logs,
27 SyslogsContext context,
28 CancelableRequestConsumerBase* consumer,
29 ReadCompleteCallback* callback));
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockSystemAccess);
33 };
34
35 } // namespace chromeos
36
37 #endif // CHROME_BROWSER_CHROMEOS_MOCK_SYSTEM_ACCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/helper.cc ('k') | chrome/browser/chromeos/mock_system_access.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698