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

Side by Side Diff: chrome/browser/chromeos/mock_system_access.h

Issue 6899021: HWID and VPD values should be accessible via SystemAccess::GetMachineStatistic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit_test Created 9 years, 8 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
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 "chrome/browser/chromeos/system_access.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace chromeos {
13
14 class MockSystemAccess : public SystemAccess {
15 public:
16 MockSystemAccess() {}
17
18 MOCK_METHOD0(GetTimezone, const icu::TimeZone&());
19 MOCK_METHOD1(SetTimezone, void(const icu::TimeZone& timezone));
20 MOCK_METHOD2(GetMachineStatistic, bool(const std::string& name,
21 std::string* result));
22 MOCK_METHOD1(AddObserver, void(Observer* observer));
23 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockSystemAccess);
27 };
28
29 } // namespace chromeos
30
31 #endif // CHROME_BROWSER_CHROMEOS_MOCK_SYSTEM_ACCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698