Home
last modified time | relevance | path

Searched refs:mockService (Results 1 – 8 of 8) sorted by relevance

/external/armnn/tests/profiling/gatordmock/
DCommandFileParser.cpp19 void CommandFileParser::ParseFile(std::string CommandFile, GatordMockService& mockService) in ParseFile() argument
26 while (mockService.ReceiveThreadRunning() && std::getline(infile, line)) in ParseFile()
43 mockService.SendDeactivateTimelinePacket(); in ParseFile()
52 mockService.SendActivateTimelinePacket(); in ParseFile()
62 mockService.SendRequestCounterDir(); in ParseFile()
86 mockService.SendPeriodicCounterSelectionList(period, counters); in ParseFile()
106 mockService.WaitCommand(timeout); in ParseFile()
DGatordMockMain.cpp30 GatordMockService mockService(std::move(basePipeServer), isEchoEnabled); in CreateMockService() local
33 if (!mockService.WaitForStreamMetaData()) in CreateMockService()
37 mockService.SendConnectionAck(); in CreateMockService()
40 mockService.LaunchReceivingThread(); in CreateMockService()
44 commandLineParser.ParseFile(commandFile, mockService); in CreateMockService()
47 mockService.WaitForReceivingThread(); in CreateMockService()
DCommandFileParser.hpp25 void ParseFile(std::string CommandFile, GatordMockService& mockService);
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DServiceTest.java75 TestService mockService = Mockito.mock(TestService.class); in testCallMethod() local
78 InOrder order = Mockito.inOrder(mockService); in testCallMethod()
80 mockService.callMethod(fooDescriptor, MOCK_RPC_CONTROLLER, FOO_REQUEST, mockFooRpcCallback); in testCallMethod()
81 mockService.callMethod(barDescriptor, MOCK_RPC_CONTROLLER, BAR_REQUEST, mockBarRpcCallback); in testCallMethod()
83 .verify(mockService) in testCallMethod()
89 .verify(mockService) in testCallMethod()
101 TestService mockService = Mockito.mock(TestService.class); in testGetPrototype() local
103 assertThat(mockService.getRequestPrototype(fooDescriptor)).isSameInstanceAs(FOO_REQUEST); in testGetPrototype()
104 assertThat(mockService.getResponsePrototype(fooDescriptor)).isSameInstanceAs(FOO_RESPONSE); in testGetPrototype()
105 assertThat(mockService.getRequestPrototype(barDescriptor)).isSameInstanceAs(BAR_REQUEST); in testGetPrototype()
[all …]
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DServiceTest.java75 TestService mockService = Mockito.mock(TestService.class); in testCallMethod() local
78 InOrder order = Mockito.inOrder(mockService); in testCallMethod()
80 mockService.callMethod(fooDescriptor, MOCK_RPC_CONTROLLER, FOO_REQUEST, mockFooRpcCallback); in testCallMethod()
81 mockService.callMethod(barDescriptor, MOCK_RPC_CONTROLLER, BAR_REQUEST, mockBarRpcCallback); in testCallMethod()
83 .verify(mockService) in testCallMethod()
89 .verify(mockService) in testCallMethod()
101 TestService mockService = Mockito.mock(TestService.class); in testGetPrototype() local
103 assertThat(mockService.getRequestPrototype(fooDescriptor)).isSameInstanceAs(FOO_REQUEST); in testGetPrototype()
104 assertThat(mockService.getResponsePrototype(fooDescriptor)).isSameInstanceAs(FOO_RESPONSE); in testGetPrototype()
105 assertThat(mockService.getRequestPrototype(barDescriptor)).isSameInstanceAs(BAR_REQUEST); in testGetPrototype()
[all …]
/external/armnn/tests/profiling/gatordmock/tests/
DGatordMockTests.cpp278 gatordmock::GatordMockService mockService(std::move(basePipeServer), false);
280 arm::pipe::TimelineDecoder& timelineDecoder = mockService.GetTimelineDecoder();
282 mockService.GetDirectoryCaptureCommandHandler();
290 if (!mockService.WaitForStreamMetaData())
295 mockService.SendConnectionAck();
297 mockService.LaunchReceivingThread();
311 CheckTimelineDirectory(mockService.GetTimelineDirectoryCaptureCommandHandler());
394 mockService.WaitForReceivingThread();
420 gatordmock::GatordMockService mockService(std::move(basePipeServer), false);
423 if (!mockService.WaitForStreamMetaData())
[all …]
/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMockFinal.java67 PrintService mockService = mock(PrintService.class); in mockFinalMethodOfAndroidFrameworkClass() local
69 assertNull(mockService.onBind(new Intent())); in mockFinalMethodOfAndroidFrameworkClass()
72 when(mockService.onBind(any(Intent.class))).thenReturn(fakeBinder); in mockFinalMethodOfAndroidFrameworkClass()
74 assertSame(fakeBinder, mockService.onBind(new Intent())); in mockFinalMethodOfAndroidFrameworkClass()
/external/nos/host/generic/libnos/generator/test/
Dtest.cpp159 MockHello mockService; in TEST() local
165 EXPECT_CALL(mockService, Greet(_, _)) in TEST()
169 IHello& service = mockService; in TEST()