blob: 21fa4a31ebbb988edbbffbb321c49899a8cb90e5 [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"
Darin Petkov1023a602010-08-30 13:47:51 -070011#include "update_engine/update_attempter.h"
12
13namespace chromeos_update_engine {
14
15class UpdateAttempterMock : public UpdateAttempter {
16 public:
Andrew de los Reyes000d8952011-03-02 15:21:14 -080017 explicit UpdateAttempterMock(MockDbusGlib* dbus)
18 : UpdateAttempter(NULL, NULL, dbus) {}
Darin Petkov1023a602010-08-30 13:47:51 -070019
Andrew de los Reyesfb2f4612011-06-09 18:21:49 -070020 MOCK_METHOD4(Update, void(const std::string& app_version,
Andrew de los Reyes45168102010-11-22 11:13:50 -080021 const std::string& omaha_url,
Andrew de los Reyesfb2f4612011-06-09 18:21:49 -070022 bool obey_proxies,
23 bool interactive));
Darin Petkov1023a602010-08-30 13:47:51 -070024};
25
26} // namespace chromeos_update_engine
27
28#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__