blob: 693cc57038478f093ed6945f623889e46a4e3427 [file] [log] [blame]
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
#include <gmock/gmock.h>
#include "update_engine/mock_dbus_interface.h"
#include "update_engine/mock_system_state.h"
#include "update_engine/update_attempter.h"
namespace chromeos_update_engine {
class MockSystemState;
class UpdateAttempterMock : public UpdateAttempter {
public:
explicit UpdateAttempterMock(MockSystemState* mock_system_state,
MockDbusGlib* dbus)
: UpdateAttempter(mock_system_state, dbus) {}
MOCK_METHOD5(Update, void(const std::string& app_version,
const std::string& omaha_url,
bool obey_proxies,
bool interactive,
bool is_test));
};
} // namespace chromeos_update_engine
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__