Lines Matching refs:query

119 bytevec make_echo(uint16_t id, const Slice query) {  in make_echo()  argument
120 bytevec response(query.size() + 2); in make_echo()
124 memcpy(response.data() + 2, query.base(), query.size()); in make_echo()
132 bool query(uint16_t id, const Slice query) override { in query() function in android::net::FakeSocketEcho
134 std::thread(&IDnsTlsSocketObserver::onResponse, mObserver, make_echo(id, query)).detach(); in query()
147 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
158 bool query(uint16_t id, const Slice query ATTRIBUTE_UNUSED) override { in query() function in android::net::FakeSocketId
183 std::future<DnsTlsTransport::Result> f = transport.query(makeSlice(QUERY)); in TEST_F()
205 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
223 bool query(uint16_t id, const Slice query) override { in query() argument
231 mResponses.push_back(make_echo(id, query)); in query()
271 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
291 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
311 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
333 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
355 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
359 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
383 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
403 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
429 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
443 bool query(uint16_t id ATTRIBUTE_UNUSED, in query() function in android::net::FakeSocketClose
444 const Slice query ATTRIBUTE_UNUSED) override { in query()
455 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
491 bool query(uint16_t id, const Slice query) override { in query() argument
498 LOG(DEBUG) << "size " << query.size() << " vs. limit of " << sMaxSize; in query()
499 if (query.size() <= sMaxSize) { in query()
501 … mThreads.emplace_back(&IDnsTlsSocketObserver::onResponse, mObserver, make_echo(id, query)); in query()
547 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
573 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
600 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
625 bool query(uint16_t id, const Slice query) override { in query() function in android::net::FakeSocketGarbage
628 auto echo = make_echo(id, query); in query()
632 ….emplace_back(&IDnsTlsSocketObserver::onResponse, mObserver, make_query(id + 1, query.size() + 2)); in query()
646 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
664 auto r = dispatcher.query(SERVER1, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
674 r = dispatcher.query(SERVER1, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
687 auto r = dispatcher.query(SERVER1, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
739 auto r = dispatcher->query(server, mark, makeSlice(q), makeSlice(ans), &resplen, in TEST_F()
876 EXPECT_EQ(0, f0->query.newId); in TEST()
877 EXPECT_EQ(1, f1->query.newId); in TEST()
878 EXPECT_EQ(2, f2->query.newId); in TEST()
890 EXPECT_EQ(q0, all[0].query); in TEST()
891 EXPECT_EQ(q1, all[1].query); in TEST()
892 EXPECT_EQ(q2, all[2].query); in TEST()
933 EXPECT_EQ(i, futures[i]->query.newId); in TEST()
955 EXPECT_EQ(40000, f->query.newId); in TEST()