Patrick Venture | a67a947 | 2018-12-19 07:29:43 -0800 | [diff] [blame] | 1 | #pragma once |
2 | |||||
Kun Yi | bd9bc00 | 2019-08-21 10:05:27 -0700 | [diff] [blame] | 3 | #include "env.hpp" |
Patrick Venture | a67a947 | 2018-12-19 07:29:43 -0800 | [diff] [blame] | 4 | |
5 | #include <string> | ||||
6 | |||||
7 | #include <gmock/gmock.h> | ||||
8 | |||||
Kun Yi | bd9bc00 | 2019-08-21 10:05:27 -0700 | [diff] [blame] | 9 | namespace env |
10 | { | ||||
11 | |||||
12 | class EnvMock : public Env | ||||
Patrick Venture | a67a947 | 2018-12-19 07:29:43 -0800 | [diff] [blame] | 13 | { |
14 | public: | ||||
Kun Yi | bd9bc00 | 2019-08-21 10:05:27 -0700 | [diff] [blame] | 15 | MOCK_CONST_METHOD1(get, const char*(const char*)); |
Patrick Venture | a67a947 | 2018-12-19 07:29:43 -0800 | [diff] [blame] | 16 | }; |
17 | |||||
Kun Yi | bd9bc00 | 2019-08-21 10:05:27 -0700 | [diff] [blame] | 18 | static inline EnvMock mockEnv; |
Patrick Venture | a67a947 | 2018-12-19 07:29:43 -0800 | [diff] [blame] | 19 | |
Kun Yi | bd9bc00 | 2019-08-21 10:05:27 -0700 | [diff] [blame] | 20 | } // namespace env |