ares-test-ai.h
Go to the documentation of this file.
1 #ifndef ARES_TEST_AI_H
2 #define ARES_TEST_AI_H
3 
4 #include <utility>
5 #include "gtest/gtest.h"
6 #include "gmock/gmock.h"
7 #include "ares-test.h"
8 
9 namespace ares {
10 namespace test {
11 
13  : public MockChannelOptsTest,
14  public ::testing::WithParamInterface< std::pair<int, bool> > {
15  public:
17 };
18 
20  : public MockChannelOptsTest,
21  public ::testing::WithParamInterface<int> {
22  public:
24 };
25 
27  : public MockChannelOptsTest,
28  public ::testing::WithParamInterface<int> {
29  public:
31 };
32 
33 
34 // Test fixture that uses a default channel.
36  public:
39  EXPECT_NE(nullptr, channel_);
40  }
41 
44  channel_ = nullptr;
45  }
46 
47  // Process all pending work on ares-owned file descriptors.
48  void Process();
49 
50  protected:
52 };
53 
54 }
55 }
56 
57 #endif
testing::WithParamInterface
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:1848
ares::test::DefaultChannelTestAI::Process
void Process()
false
#define false
Definition: setup_once.h:323
test
Definition: spinlock_test.cc:36
ares::test::DefaultChannelTestAI
Definition: ares-test-ai.h:35
ares_init
CARES_EXTERN int ares_init(ares_channel *channelptr)
Definition: ares_init.c:98
ares::test::DefaultChannelTestAI::~DefaultChannelTestAI
~DefaultChannelTestAI()
Definition: ares-test-ai.h:42
ares::test::MockTCPChannelTestAI
Definition: ares-test-ai.h:26
ares::test::MockUDPChannelTestAI
Definition: ares-test-ai.h:19
ares::test::DefaultChannelTestAI::DefaultChannelTestAI
DefaultChannelTestAI()
Definition: ares-test-ai.h:37
second
StrT second
Definition: cxa_demangle.cpp:4885
true
#define true
Definition: setup_once.h:324
EXPECT_EQ
#define EXPECT_EQ(a, b)
Definition: iomgr/time_averaged_stats_test.cc:27
EXPECT_NE
#define EXPECT_NE(val1, val2)
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:2028
ares::test::MockChannelTestAI::MockChannelTestAI
MockChannelTestAI()
Definition: ares-test-ai.h:16
ares-test.h
ARES_SUCCESS
#define ARES_SUCCESS
Definition: ares.h:98
ares::test::MockChannelTestAI
Definition: ares-test-ai.h:12
ares_channeldata
Definition: ares_private.h:266
ares_destroy
CARES_EXTERN void ares_destroy(ares_channel channel)
Definition: ares_destroy.c:43
first
StrT first
Definition: cxa_demangle.cpp:4884
testing::WithParamInterface< std::pair< int, bool > >::GetParam
static const ParamType & GetParam()
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:1855
ares::test::DefaultChannelTestAI::channel_
ares_channel channel_
Definition: ares-test-ai.h:51
ares::test::MockChannelOptsTest
Definition: ares-test.h:176
ares::test::MockTCPChannelTestAI::MockTCPChannelTestAI
MockTCPChannelTestAI()
Definition: ares-test-ai.h:30
ares::test::MockUDPChannelTestAI::MockUDPChannelTestAI
MockUDPChannelTestAI()
Definition: ares-test-ai.h:23
ares
Definition: ares-test-ai.h:9
ares::test::LibraryTest
Definition: ares-test.h:60


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:32