Home
last modified time | relevance | path

Searched refs:FakeResource (Results 1 – 10 of 10) sorted by relevance

/external/webrtc/call/adaptation/test/
Dfake_resource.cc21 rtc::scoped_refptr<FakeResource> FakeResource::Create(std::string name) { in Create()
22 return new rtc::RefCountedObject<FakeResource>(name); in Create()
25 FakeResource::FakeResource(std::string name) in FakeResource() function in webrtc::FakeResource
28 FakeResource::~FakeResource() {} in ~FakeResource()
30 void FakeResource::SetUsageState(ResourceUsageState usage_state) { in SetUsageState()
36 std::string FakeResource::Name() const { in Name()
40 void FakeResource::SetResourceListener(ResourceListener* listener) { in SetResourceListener()
Dfake_resource.h24 class FakeResource : public Resource {
26 static rtc::scoped_refptr<FakeResource> Create(std::string name);
28 explicit FakeResource(std::string name);
29 ~FakeResource() override;
/external/webrtc/call/adaptation/
Dbroadcast_resource_listener_unittest.cc24 rtc::scoped_refptr<FakeResource> source_resource = in TEST()
25 FakeResource::Create("SourceResource"); in TEST()
49 rtc::scoped_refptr<FakeResource> source_resource = in TEST()
50 FakeResource::Create("FooBarResource"); in TEST()
63 rtc::scoped_refptr<FakeResource> source_resource = in TEST()
64 FakeResource::Create("SourceResource"); in TEST()
Dresource_unittest.cc28 ResourceTest() : fake_resource_(FakeResource::Create("FakeResource")) {} in ResourceTest()
31 rtc::scoped_refptr<FakeResource> fake_resource_;
Dresource_adaptation_processor_unittest.cc90 resource_(FakeResource::Create("FakeResource")), in ResourceAdaptationProcessorTest()
91 other_resource_(FakeResource::Create("OtherFakeResource")), in ResourceAdaptationProcessorTest()
143 rtc::scoped_refptr<FakeResource> resource_;
144 rtc::scoped_refptr<FakeResource> other_resource_;
Dvideo_stream_adapter_unittest.cc190 resource_(FakeResource::Create("FakeResource")), in VideoStreamAdapterTest()
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/
DGrpcCleanupRuleTest.java311 Resource resource1 = mock(FakeResource.class, in multiResource_timeoutCalculation()
312 delegatesTo(new FakeResource(1 /* cleanupNanos */, 10 /* awaitReleaseNanos */))); in multiResource_timeoutCalculation()
314 Resource resource2 = mock(FakeResource.class, in multiResource_timeoutCalculation()
315 delegatesTo(new FakeResource(100 /* cleanupNanos */, 1000 /* awaitReleaseNanos */))); in multiResource_timeoutCalculation()
348 Resource resource1 = mock(FakeResource.class, in multiResource_timeoutCalculation_customTimeout()
349 delegatesTo(new FakeResource(1 /* cleanupNanos */, 10 /* awaitReleaseNanos */))); in multiResource_timeoutCalculation_customTimeout()
351 Resource resource2 = mock(FakeResource.class, in multiResource_timeoutCalculation_customTimeout()
352 delegatesTo(new FakeResource(100 /* cleanupNanos */, 1000 /* awaitReleaseNanos */))); in multiResource_timeoutCalculation_customTimeout()
423 public static class FakeResource implements Resource { class in GrpcCleanupRuleTest
427 private FakeResource(long cleanupNanos, long awaitReleaseNanos) { in FakeResource() method in GrpcCleanupRuleTest.FakeResource
/external/webrtc/pc/
Dpeer_connection_adaptation_integrationtest.cc67 rtc::scoped_refptr<FakeResource> fake_resource, in TriggerOveruseAndGetSinkWants()
122 auto fake_resource = FakeResource::Create("FakeResource"); in TEST_F()
137 auto fake_resource = FakeResource::Create("FakeResource"); in TEST_F()
/external/webrtc/call/
Dcall_unittest.cc373 auto fake_resource = FakeResource::Create("FakeResource"); in TEST()
414 auto fake_resource = FakeResource::Create("FakeResource"); in TEST()
/external/webrtc/video/
Dvideo_stream_encoder_unittest.cc323 fake_cpu_resource_(FakeResource::Create("FakeResource[CPU]")), in VideoStreamEncoderUnderTest()
324 fake_quality_resource_(FakeResource::Create("FakeResource[QP]")), in VideoStreamEncoderUnderTest()
433 rtc::scoped_refptr<FakeResource> fake_cpu_resource_;
434 rtc::scoped_refptr<FakeResource> fake_quality_resource_;