blob: 21fa4a31ebbb988edbbffbb321c49899a8cb90e5 [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/update_attempter.h"
namespace chromeos_update_engine {
class UpdateAttempterMock : public UpdateAttempter {
public:
explicit UpdateAttempterMock(MockDbusGlib* dbus)
: UpdateAttempter(NULL, NULL, dbus) {}
MOCK_METHOD4(Update, void(const std::string& app_version,
const std::string& omaha_url,
bool obey_proxies,
bool interactive));
};
} // namespace chromeos_update_engine
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__