blob: 8add8424e2b347cdd50cf0783f07cab52fb7e5d5 [file] [log] [blame]
// Copyright (c) 2011 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.
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <iostream>
#include <string>
#include "image_burner_utils_interfaces.h"
namespace imageburn {
class MockFileSystemWriter : public FileSystemWriter {
public:
MOCK_METHOD1(Open, bool(const char*));
MOCK_METHOD0(Close, bool());
MOCK_METHOD2(Write, int(char*, int));
};
class MockFileSystemReader : public FileSystemReader {
public:
MOCK_METHOD1(Open, bool(const char*));
MOCK_METHOD0(Close, bool());
MOCK_METHOD0(GetSize, int64());
MOCK_METHOD2(Read, int(char*, int));
};
class MockSignalSender : public SignalSender {
public:
MOCK_METHOD3(SendFinishedSignal, void(const char*, bool, const char*));
MOCK_METHOD3(SendProgressSignal, void(int64, int64, const char*));
};
class MockRootPathGetter : public RootPathGetter {
public:
MOCK_METHOD1(GetRootPath, bool(std::string*));
};
} // namespace imageburn.