Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
cares
cares
test
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
12
class
MockChannelTestAI
13
:
public
MockChannelOptsTest
,
14
public
::testing::WithParamInterface
< std::pair<int, bool> > {
15
public
:
16
MockChannelTestAI
() :
MockChannelOptsTest
(1,
GetParam
().
first
,
GetParam
().
second
, nullptr, 0) {}
17
};
18
19
class
MockUDPChannelTestAI
20
:
public
MockChannelOptsTest
,
21
public
::testing::WithParamInterface
<int> {
22
public
:
23
MockUDPChannelTestAI
() :
MockChannelOptsTest
(1,
GetParam
(),
false
, nullptr, 0) {}
24
};
25
26
class
MockTCPChannelTestAI
27
:
public
MockChannelOptsTest
,
28
public
::testing::WithParamInterface
<int> {
29
public
:
30
MockTCPChannelTestAI
() :
MockChannelOptsTest
(1,
GetParam
(),
true
, nullptr, 0) {}
31
};
32
33
34
// Test fixture that uses a default channel.
35
class
DefaultChannelTestAI
:
public
LibraryTest
{
36
public
:
37
DefaultChannelTestAI
() :
channel_
(nullptr) {
38
EXPECT_EQ
(
ARES_SUCCESS
,
ares_init
(&
channel_
));
39
EXPECT_NE
(
nullptr
,
channel_
);
40
}
41
42
~DefaultChannelTestAI
() {
43
ares_destroy
(
channel_
);
44
channel_
=
nullptr
;
45
}
46
47
// Process all pending work on ares-owned file descriptors.
48
void
Process
();
49
50
protected
:
51
ares_channel
channel_
;
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