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 12namespace chromeos { 13 14class 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_ 32