blob: c35c749e04b57db7be7ef4052c4cfe0bdf2de4fb [file] [log] [blame]
Kun Yi91beea62018-11-26 15:23:14 -08001#pragma once
2
Kun Yi68c81142018-12-18 11:17:14 -08003#include "binarystore_mock.hpp"
Kun Yi91beea62018-11-26 15:23:14 -08004#include "handler.hpp"
5
Kun Yi64dc05c2018-12-19 13:19:03 -08006#include <memory>
7#include <string>
8
Kun Yi91beea62018-11-26 15:23:14 -08009#include <gtest/gtest.h>
10
Kun Yi64dc05c2018-12-19 13:19:03 -080011using ::testing::Contains;
12
13using namespace std::string_literals;
14
Kun Yi91beea62018-11-26 15:23:14 -080015namespace blobs
16{
17
18class BinaryStoreBlobHandlerTest : public ::testing::Test
19{
20 protected:
21 BinaryStoreBlobHandlerTest() = default;
Kun Yi68c81142018-12-18 11:17:14 -080022 BinaryStoreBlobHandler handler;
Kun Yi91beea62018-11-26 15:23:14 -080023
Kun Yi64dc05c2018-12-19 13:19:03 -080024 std::unique_ptr<binstore::MockBinaryStore>
25 defaultMockStore(const std::string& baseId)
26 {
27 return std::make_unique<binstore::MockBinaryStore>(baseId, 0, 0, 0);
28 }
29
30 void addDefaultStore(const std::string& baseId)
31 {
32 handler.addNewBinaryStore(defaultMockStore(baseId));
33 }
Kun Yi38146a02018-12-18 21:54:26 -080034};
35
Kun Yi91beea62018-11-26 15:23:14 -080036} // namespace blobs