Coverage Report

Created: 2024-09-19 09:45

/proc/self/cwd/test/mocks/server/hot_restart.cc
Line
Count
Source
1
#include "hot_restart.h"
2
3
#include <string>
4
5
#include "gmock/gmock.h"
6
#include "gtest/gtest.h"
7
8
namespace Envoy {
9
namespace Server {
10
11
using ::testing::_;
12
using ::testing::Return;
13
using ::testing::ReturnRef;
14
15
3.01k
MockHotRestart::MockHotRestart() : stats_allocator_(*symbol_table_) {
16
3.01k
  ON_CALL(*this, logLock()).WillByDefault(ReturnRef(log_lock_));
17
3.01k
  ON_CALL(*this, accessLogLock()).WillByDefault(ReturnRef(access_log_lock_));
18
3.01k
  ON_CALL(*this, statsAllocator()).WillByDefault(ReturnRef(stats_allocator_));
19
3.01k
  ON_CALL(*this, duplicateParentListenSocket(_, _)).WillByDefault(Return(-1));
20
3.01k
}
21
22
3.01k
MockHotRestart::~MockHotRestart() = default;
23
24
} // namespace Server
25
} // namespace Envoy