blob: c574272ba9b80cf7a739d4e787892cdfedd98a09 [file] [log] [blame]
// Copyright 2015 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 THERMALD_MOCK_KEY_VALUE_SUBSCRIBER_H_
#define THERMALD_MOCK_KEY_VALUE_SUBSCRIBER_H_
#include <string>
#include "base/macros.h"
#include "gmock/gmock.h"
namespace thermald {
// Mock subscriber for tests involving a KeyValuePublisher.
class MockKeyValueSubscriber {
public:
MockKeyValueSubscriber() {}
MOCK_METHOD2(Set, void(const std::string &, int));
private:
DISALLOW_COPY_AND_ASSIGN(MockKeyValueSubscriber);
};
} // namespace thermald
#endif // THERMALD_MOCK_KEY_VALUE_SUBSCRIBER_H_