blob: 782277acd9ef5b7a194cec8e80b2fc72124e7ad8 [file] [log] [blame]
Darin Petkov1023a602010-08-30 13:47:51 -07001// Copyright (c) 2010 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
7
8#include <gmock/gmock.h>
9
Andrew de los Reyes45168102010-11-22 11:13:50 -080010#include "update_engine/mock_dbus_interface.h"
Jay Srinivasan6f6ea002012-12-14 11:26:28 -080011#include "update_engine/mock_system_state.h"
Darin Petkov1023a602010-08-30 13:47:51 -070012#include "update_engine/update_attempter.h"
13
14namespace chromeos_update_engine {
15
Jay Srinivasan55f50c22013-01-10 19:24:35 -080016class MockSystemState;
17
Darin Petkov1023a602010-08-30 13:47:51 -070018class UpdateAttempterMock : public UpdateAttempter {
19 public:
Jay Srinivasan6f6ea002012-12-14 11:26:28 -080020 explicit UpdateAttempterMock(MockSystemState* mock_system_state,
21 MockDbusGlib* dbus)
Gilad Arnoldbf7919b2013-01-08 13:07:37 -080022 : UpdateAttempter(mock_system_state, dbus) {}
Darin Petkov1023a602010-08-30 13:47:51 -070023
Jay Srinivasan08fce042012-06-07 16:31:01 -070024 MOCK_METHOD6(Update, void(const std::string& app_version,
Andrew de los Reyes45168102010-11-22 11:13:50 -080025 const std::string& omaha_url,
Andrew de los Reyesfb2f4612011-06-09 18:21:49 -070026 bool obey_proxies,
Gilad Arnold1ebd8132012-03-05 10:19:29 -080027 bool interactive,
Jay Srinivasan08fce042012-06-07 16:31:01 -070028 bool is_test,
29 bool is_user_initiated));
Darin Petkov1023a602010-08-30 13:47:51 -070030};
31
32} // namespace chromeos_update_engine
33
34#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__