blob: 9aad8c1154582bb53dbdc0917bb05711efa427e2 [file] [log] [blame]
Patrick Venturea67a9472018-12-19 07:29:43 -08001#pragma once
2
Kun Yibd9bc002019-08-21 10:05:27 -07003#include "env.hpp"
Patrick Venturea67a9472018-12-19 07:29:43 -08004
5#include <string>
6
7#include <gmock/gmock.h>
8
Kun Yibd9bc002019-08-21 10:05:27 -07009namespace env
10{
11
12class EnvMock : public Env
Patrick Venturea67a9472018-12-19 07:29:43 -080013{
14 public:
Kun Yibd9bc002019-08-21 10:05:27 -070015 MOCK_CONST_METHOD1(get, const char*(const char*));
Patrick Venturea67a9472018-12-19 07:29:43 -080016};
17
Kun Yibd9bc002019-08-21 10:05:27 -070018static inline EnvMock mockEnv;
Patrick Venturea67a9472018-12-19 07:29:43 -080019
Kun Yibd9bc002019-08-21 10:05:27 -070020} // namespace env