Home
last modified time | relevance | path

Searched refs:FakeClient (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc/test/cpp/end2end/
Dmock_test.cc64 class FakeClient { class
66 explicit FakeClient(EchoTestService::StubInterface* stub) : stub_(stub) {} in FakeClient() function in grpc::testing::__anon7521e91b0111::FakeClient
261 FakeClient client(stub_.get()); in TEST_F()
275 FakeClient client(stub_.get()); in TEST_F()
295 FakeClient client(stub_.get()); in TEST_F()
321 FakeClient client(stub_.get()); in TEST_F()
/external/grpc-grpc/doc/
Dunit_testing.md87 class FakeClient {
89 explicit FakeClient(EchoTestService::StubInterface* stub) : stub_(stub) {}
139 A test could initialize this FakeClient with a mocked stub having set expectations on it:
148 FakeClient client(stub);
172 FakeClient client(stub);
/external/python/apitools/apitools/base/py/
Dbase_api_test.py83 class FakeClient(base_api.BaseApiClient): class
94 client = client or FakeClient(
102 return FakeClient('', credentials=FakeCredentials())
105 client = FakeClient('http://www.googleapis.com', get_credentials=False)
109 client = FakeClient('', get_credentials=False)
/external/perfetto/src/ipc/
Dhost_impl_unittest.cc82 class FakeClient : public base::UnixSocket::EventListener { class
91 explicit FakeClient(base::TaskRunner* task_runner) { in FakeClient() function in perfetto::ipc::__anon48d3e7760111::FakeClient
95 ~FakeClient() override = default;
174 cli_.reset(new FakeClient(task_runner_.get())); in SetUp()
192 std::unique_ptr<FakeClient> cli_;