Commit 65596ae
authored
core: Move 4 test cases from DnsNameResolverTest to DnsNameResolverProviderTest (#12605)
These test cases make use of DnsNameResolverProvider but also cover some
logic from DnsNameResolverProvider's ctor. They could reasonably live in
either file but DnsNameResolverProviderTest already knows how to test
the new RFC 3986 newNameResolver() overload.
Leaves DnsNameResolverTest.java without any `java.net.URI` usage, which
makes sense because DnsNameResolver's public API does not mention
java.net.URI.
Removed test helpers that asserted more than "a single conceptual fact"
per
https://abseil.io/resources/swe-book/html/ch12.html#shared_helpers_and_validation1 parent 59a64f0 commit 65596ae
2 files changed
Lines changed: 28 additions & 49 deletions
File tree
- core/src/test/java/io/grpc/internal
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
95 | 106 | | |
96 | 107 | | |
97 | 108 | | |
| |||
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
111 | 138 | | |
112 | 139 | | |
113 | 140 | | |
| |||
Lines changed: 1 addition & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
| |||
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 140 | | |
152 | 141 | | |
153 | 142 | | |
| |||
167 | 156 | | |
168 | 157 | | |
169 | 158 | | |
| 159 | + | |
170 | 160 | | |
171 | 161 | | |
172 | 162 | | |
| |||
216 | 206 | | |
217 | 207 | | |
218 | 208 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 209 | | |
242 | 210 | | |
243 | 211 | | |
| |||
1284 | 1252 | | |
1285 | 1253 | | |
1286 | 1254 | | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | 1255 | | |
1304 | 1256 | | |
1305 | 1257 | | |
| |||
0 commit comments