Home
last modified time | relevance | path

Searched refs:FakeTaskRunner (Results 1 – 25 of 39) sorted by relevance

12

/external/openscreen/platform/test/
Dfake_task_runner.cc13 FakeTaskRunner::FakeTaskRunner(FakeClock* clock) : clock_(clock) { in FakeTaskRunner() function in openscreen::FakeTaskRunner
18 FakeTaskRunner::~FakeTaskRunner() { in ~FakeTaskRunner()
22 void FakeTaskRunner::RunTasksUntilIdle() { in RunTasksUntilIdle()
52 void FakeTaskRunner::PostPackagedTask(Task task) { in PostPackagedTask()
56 void FakeTaskRunner::PostPackagedTaskWithDelay(Task task, in PostPackagedTaskWithDelay()
62 bool FakeTaskRunner::IsRunningOnTaskRunner() { in IsRunningOnTaskRunner()
66 Clock::time_point FakeTaskRunner::GetResumeTime() const { in GetResumeTime()
Dfake_clock.h16 class FakeTaskRunner; variable
31 friend class FakeTaskRunner;
33 void SubscribeToTimeChanges(FakeTaskRunner* task_runner);
34 void UnsubscribeFromTimeChanges(FakeTaskRunner* task_runner);
41 std::vector<FakeTaskRunner*> task_runners_;
Dfake_task_runner.h43 class FakeTaskRunner : public TaskRunner {
47 explicit FakeTaskRunner(FakeClock* clock);
48 ~FakeTaskRunner() override;
Dfake_clock.cc46 for (FakeTaskRunner* task_runner : task_runners_) { in Advance()
52 for (FakeTaskRunner* task_runner : task_runners_) { in Advance()
67 void FakeClock::SubscribeToTimeChanges(FakeTaskRunner* task_runner) { in SubscribeToTimeChanges()
74 void FakeClock::UnsubscribeFromTimeChanges(FakeTaskRunner* task_runner) { in UnsubscribeFromTimeChanges()
/external/openscreen/third_party/chromium_quic/demo/
Ddelegates.cc70 FakeTaskRunner::FakeTaskRunner(std::vector<FakeTask>* tasks) : tasks_(tasks) {} in FakeTaskRunner() function in FakeTaskRunner
71 FakeTaskRunner::~FakeTaskRunner() = default;
73 bool FakeTaskRunner::PostDelayedTask(const base::Location& whence, in PostDelayedTask()
80 bool FakeTaskRunner::RunsTasksInCurrentSequence() const { in RunsTasksInCurrentSequence()
Ddelegates.h80 class FakeTaskRunner : public base::TaskRunner {
82 explicit FakeTaskRunner(std::vector<FakeTask>* tasks);
91 ~FakeTaskRunner() override;
Dserver.cc92 scoped_refptr<FakeTaskRunner> task_runner = in main()
93 base::MakeRefCounted<FakeTaskRunner>(&tasks); in main()
Dclient.cc84 scoped_refptr<FakeTaskRunner> task_runner = in main()
85 base::MakeRefCounted<FakeTaskRunner>(&tasks); in main()
/external/openscreen/platform/api/
Dsocket_integration_unittest.cc21 FakeTaskRunner task_runner(&clock); in TEST()
39 FakeTaskRunner task_runner(&clock); in TEST()
Dserial_delete_ptr_unittest.cc24 FakeTaskRunner task_runner_;
/external/openscreen/osp/impl/quic/testing/
Dquic_test_support.h59 FakeQuicBridge(FakeTaskRunner* task_runner, ClockNowFunctionPtr now_function);
81 FakeTaskRunner* task_runner_;
Dquic_test_support.cc17 FakeQuicBridge::FakeQuicBridge(FakeTaskRunner* task_runner, in FakeQuicBridge()
/external/openscreen/util/
Dalarm_unittest.cc21 FakeTaskRunner* task_runner() { return &task_runner_; } in task_runner()
26 FakeTaskRunner task_runner_{&clock_};
/external/openscreen/platform/impl/
Dtls_data_router_posix_unittest.cc79 FakeTaskRunner* task_runner() { return &task_runner_; } in task_runner()
84 FakeTaskRunner task_runner_;
/external/openscreen/osp/impl/quic/
Dquic_server_unittest.cc54 task_runner_ = std::make_unique<FakeTaskRunner>(fake_clock_.get()); in QuicServerTest()
126 std::unique_ptr<FakeTaskRunner> task_runner_;
Dquic_client_unittest.cc65 task_runner_ = std::make_unique<FakeTaskRunner>(fake_clock_.get()); in QuicClientTest()
123 std::unique_ptr<FakeTaskRunner> task_runner_;
/external/openscreen/osp/impl/presentation/
Dpresentation_receiver_unittest.cc68 task_runner_ = std::make_unique<FakeTaskRunner>(fake_clock_.get()); in PresentationReceiverTest()
103 std::unique_ptr<FakeTaskRunner> task_runner_;
Dpresentation_connection_unittest.cc63 task_runner_ = std::make_unique<FakeTaskRunner>(fake_clock_.get()); in ConnectionTest()
92 std::unique_ptr<FakeTaskRunner> task_runner_;
Dpresentation_controller_unittest.cc81 task_runner_ = std::make_unique<FakeTaskRunner>(fake_clock_.get()); in ControllerTest()
296 std::unique_ptr<FakeTaskRunner> task_runner_;
/external/openscreen/cast/sender/
Dcast_platform_client_unittest.cc52 FakeTaskRunner task_runner_{&clock_};
Dcast_app_discovery_service_impl_unittest.cc85 FakeTaskRunner task_runner_{&clock_};
/external/openscreen/discovery/mdns/
Dmdns_probe_unittest.cc79 FakeTaskRunner task_runner_;
/external/openscreen/platform/
DREADME.md30 FakeClock or FakeTaskRunner.
/external/openscreen/osp/impl/
Dmdns_responder_service_unittest.cc28 FakeTaskRunner* task_runner, in TestingMdnsResponderService()
190 task_runner_ = std::make_unique<FakeTaskRunner>(clock_.get()); in SetUp()
208 std::unique_ptr<FakeTaskRunner> task_runner_;
/external/openscreen/discovery/dnssd/impl/
Dpublisher_impl_unittest.cc81 FakeTaskRunner task_runner_;

12