Home
last modified time | relevance | path

Searched refs:task_runner_ (Results 1 – 25 of 167) sorted by relevance

1234567

/external/chromium_org/components/policy/core/common/cloud/
Dcloud_policy_refresh_scheduler_unittest.cc35 : task_runner_(new base::TestSimpleTaskRunner()), in CloudPolicyRefreshSchedulerTest()
56 EXPECT_EQ(0u, task_runner_->GetPendingTasks().size()); in CreateRefreshScheduler()
58 new CloudPolicyRefreshScheduler(&client_, &store_, task_runner_); in CreateRefreshScheduler()
62 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size()); in CreateRefreshScheduler()
63 task_runner_->RunPendingTasks(); in CreateRefreshScheduler()
75 task_runner_->GetPendingTasks(); in GetLastDelay()
90 EXPECT_FALSE(task_runner_->GetPendingTasks().empty()); in CheckTimingWithAge()
146 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; member in policy::CloudPolicyRefreshSchedulerTest
156 EXPECT_FALSE(task_runner_->GetPendingTasks().empty()); in TEST_F()
159 task_runner_->RunUntilIdle(); in TEST_F()
[all …]
Drate_limiter_unittest.cc19 : task_runner_(new base::TestSimpleTaskRunner()), in RateLimiterTest()
28 task_runner_, in RateLimiterTest()
37 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; member in policy::RateLimiterTest
53 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); in TEST_F()
61 EXPECT_FALSE(task_runner_->GetPendingTasks().empty()); in TEST_F()
67 task_runner_->RunPendingTasks(); in TEST_F()
69 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); in TEST_F()
80 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); in TEST_F()
94 EXPECT_TRUE(task_runner_->GetPendingTasks().empty()); in TEST_F()
103 EXPECT_FALSE(task_runner_->GetPendingTasks().empty()); in TEST_F()
[all …]
Dcomponent_cloud_policy_updater_unittest.cc74 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; member in policy::ComponentCloudPolicyUpdaterTest
88 task_runner_ = new base::TestSimpleTaskRunner(); in SetUp()
89 cache_.reset(new ResourceCache(temp_dir_.path(), task_runner_)); in SetUp()
95 task_runner_, in SetUp()
98 task_runner_, in SetUp()
99 fetcher_backend_->CreateFrontend(task_runner_), in SetUp()
119 task_runner_->RunUntilIdle(); in TearDown()
131 task_runner_->RunUntilIdle(); in TEST_F()
143 task_runner_->RunUntilIdle(); in TEST_F()
164 task_runner_->RunUntilIdle(); in TEST_F()
[all …]
Dpolicy_header_io_helper_unittest.cc21 task_runner_ = make_scoped_refptr(new base::TestSimpleTaskRunner()); in PolicyHeaderIOHelperTest()
28 task_runner_)); in SetUp()
29 task_runner_->RunUntilIdle(); in SetUp()
32 task_runner_->RunUntilIdle(); in TearDown()
46 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; member in policy::__anon5631aa200111::PolicyHeaderIOHelperTest
68 task_runner_->RunUntilIdle(); in TEST_F()
77 task_runner_->RunUntilIdle(); in TEST_F()
Dpolicy_header_service_unittest.cc35 task_runner_ = make_scoped_refptr(new base::TestSimpleTaskRunner()); in PolicyHeaderServiceTest()
42 helper_ = service_->CreatePolicyHeaderIOHelper(task_runner_).Pass(); in SetUp()
46 task_runner_->RunUntilIdle(); in TearDown()
80 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; member in policy::__anondb45361a0111::PolicyHeaderServiceTest
97 task_runner_->RunUntilIdle(); in TEST_F()
107 task_runner_->RunUntilIdle(); in TEST_F()
/external/chromium_org/base/mac/
Dlibdispatch_task_runner_unittest.cc16 task_runner_ = new base::mac::LibDispatchTaskRunner( in SetUp()
23 dispatch_async(task_runner_->GetDispatchQueue(), ^{ in DispatchLastTask()
28 task_runner_->Shutdown(); in DispatchLastTask()
58 scoped_refptr<base::mac::LibDispatchTaskRunner> task_runner_; member in LibDispatchTaskRunnerTest
92 task_runner_->PostTask(FROM_HERE, BoundRecordTaskOrder(this, "Basic Task")); in TEST_F()
102 task_runner_->PostTask(FROM_HERE, base::BindBlock(^{ in TEST_F()
104 task_runner_->PostTask(FROM_HERE, BoundRecordTaskOrder(this, "Inner")); in TEST_F()
118 task_runner_->PostTask(FROM_HERE, base::BindBlock(^{ in TEST_F()
132 dispatch_async(task_runner_->GetDispatchQueue(), ^{ in TEST_F()
135 task_runner_->PostTask(FROM_HERE, BoundRecordTaskOrder(this, "First Task")); in TEST_F()
[all …]
/external/chromium_org/media/cast/net/pacing/
Dpaced_sender_unittest.cc60 task_runner_ = new test::FakeTaskRunner(&testing_clock_); in SetUp()
61 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, in SetUp()
62 task_runner_, task_runner_, task_runner_, task_runner_, in SetUp()
77 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::PacedSenderTest
105 task_runner_->RunTasks(); in TEST_F()
110 task_runner_->RunTasks(); in TEST_F()
115 task_runner_->RunTasks(); in TEST_F()
119 task_runner_->RunTasks(); in TEST_F()
148 task_runner_->RunTasks(); in TEST_F()
156 task_runner_->RunTasks(); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/system/
Dautomatic_reboot_manager_unittest.cc114 scoped_refptr<MockTimeSingleThreadTaskRunner> task_runner_; member in chromeos::system::__anonebad21d60111::MockTimeTickClock
161 scoped_refptr<MockTimeSingleThreadTaskRunner> task_runner_; member in chromeos::system::AutomaticRebootManagerBasicTest
320 : task_runner_(task_runner) { in MockTimeTickClock()
327 return task_runner_->Now(); in NowTicks()
333 task_runner_(new MockTimeSingleThreadTaskRunner), in AutomaticRebootManagerBasicTest()
337 ui_thread_task_runner_handle_(task_runner_), in AutomaticRebootManagerBasicTest()
349 task_runner_->SetUptimeFile(uptime_file); in SetUp()
381 task_runner_->RunUntilIdle(); in TearDown()
401 task_runner_->RunUntilIdle(); in SetRebootAfterUpdate()
417 task_runner_->RunUntilIdle(); in SetUptimeLimit()
[all …]
/external/chromium_org/media/cast/video_sender/
Dvideo_encoder_unittest.cc88 task_runner_ = new test::FakeTaskRunner(&testing_clock_); in SetUp()
89 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, in SetUp()
90 task_runner_, task_runner_, task_runner_, task_runner_, in SetUp()
103 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::VideoEncoderTest
123 task_runner_->RunTasks(); in TEST_F()
130 task_runner_->RunTasks(); in TEST_F()
137 task_runner_->RunTasks(); in TEST_F()
146 task_runner_->RunTasks(); in TEST_F()
165 task_runner_->RunTasks(); in TEST_F()
172 task_runner_->RunTasks(); in TEST_F()
[all …]
Dvideo_sender_unittest.cc84 task_runner_ = new test::FakeTaskRunner(&testing_clock_); in SetUp()
85 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, in SetUp()
86 task_runner_, task_runner_, task_runner_, task_runner_, in SetUp()
102 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::VideoSenderTest
116 task_runner_->RunTasks(); in TEST_F()
161 task_runner_->RunTasks(); in TEST_F()
175 task_runner_->RunTasks(); in TEST_F()
186 task_runner_->RunTasks(); in TEST_F()
193 task_runner_->RunTasks(); in TEST_F()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dtask_unittest.cc156 stuck_[i].task_ = new StuckTask(&task_runner_); in Start()
167 happy_[i].task_ = new HappyTask(&task_runner_); in Start()
206 task_runner_.RunTasks(); in Start()
211 for (int i = 0; !task_runner_.AllChildrenDone() && i < STUCK_TASK_COUNT; in Start()
220 task_runner_.PollTasks(); in Start()
277 EXPECT_TRUE(task_runner_.AllChildrenDone()); in check_passed()
303 MyTaskRunner task_runner_; member in talk_base::TaskTest
338 Task *abort_task = new AbortTask(&task_runner_); in Start()
343 task_runner_.RunTasks(); in Start()
351 MyTaskRunner task_runner_; member in talk_base::TaskAbortTest
[all …]
/external/chromium_org/webkit/child/
Dworker_task_runner_unittest.cc15 task_runner_.OnWorkerRunLoopStarted(blink::WebWorkerRunLoop()); in FakeStart()
18 task_runner_.OnWorkerRunLoopStopped(blink::WebWorkerRunLoop()); in FakeStop()
20 WorkerTaskRunner task_runner_; member in webkit_glue::WorkerTaskRunnerTest
37 ASSERT_EQ(0, task_runner_.CurrentWorkerId()); in TEST_F()
41 task_runner_.AddStopObserver(&o); in TEST_F()
42 ASSERT_LT(0, task_runner_.CurrentWorkerId()); in TEST_F()
49 o.runner_ = &task_runner_; in TEST_F()
52 task_runner_.AddStopObserver(&o); in TEST_F()
/external/chromium_org/media/cast/audio_sender/
Daudio_sender_unittest.cc35 task_runner_ = new test::FakeTaskRunner(&testing_clock_); in SetUp()
36 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, in SetUp()
37 task_runner_, task_runner_, task_runner_, task_runner_, in SetUp()
54 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::AudioSenderTest
73 task_runner_->RunTasks(); in TEST_F()
92 task_runner_->RunTasks(); in TEST_F()
98 task_runner_->RunTasks(); in TEST_F()
/external/chromium_org/remoting/client/
Dchromoting_client.cc35 task_runner_(client_context->main_task_runner()), in ChromotingClient()
58 DCHECK(task_runner_->BelongsToCurrentThread()); in Start()
89 DCHECK(task_runner_->BelongsToCurrentThread()); in GetStats()
95 DCHECK(task_runner_->BelongsToCurrentThread()); in SetCapabilities()
117 DCHECK(task_runner_->BelongsToCurrentThread()); in SetPairingResponse()
124 DCHECK(task_runner_->BelongsToCurrentThread()); in DeliverHostMessage()
131 DCHECK(task_runner_->BelongsToCurrentThread()); in InjectClipboardEvent()
138 DCHECK(task_runner_->BelongsToCurrentThread()); in SetCursorShape()
146 DCHECK(task_runner_->BelongsToCurrentThread()); in OnConnectionState()
163 DCHECK(task_runner_->BelongsToCurrentThread()); in OnAuthenticated()
[all …]
Dframe_consumer_proxy.cc20 task_runner_(task_runner) { in FrameConsumerProxy()
28 if (!task_runner_->BelongsToCurrentThread()) { in ApplyBuffer()
29 task_runner_->PostTask(FROM_HERE, base::Bind( in ApplyBuffer()
40 if (!task_runner_->BelongsToCurrentThread()) { in ReturnBuffer()
41 task_runner_->PostTask(FROM_HERE, base::Bind( in ReturnBuffer()
53 if (!task_runner_->BelongsToCurrentThread()) { in SetSourceSize()
54 task_runner_->PostTask(FROM_HERE, base::Bind( in SetSourceSize()
/external/chromium_org/media/cast/video_receiver/
Dvideo_receiver_unittest.cc74 task_runner_ = new test::FakeTaskRunner(&testing_clock_); in VideoReceiverTest()
75 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, in VideoReceiverTest()
76 task_runner_, task_runner_, task_runner_, task_runner_, in VideoReceiverTest()
106 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::VideoReceiverTest
122 task_runner_->RunTasks(); in TEST_F()
146 task_runner_->RunTasks(); in TEST_F()
160 task_runner_->RunTasks(); in TEST_F()
Dvideo_decoder_unittest.cc44 : task_runner_(new test::FakeTaskRunner(&testing_clock_)), in VideoDecoderTest()
45 cast_environment_(new CastEnvironment(&testing_clock_, task_runner_, in VideoDecoderTest()
46 task_runner_, task_runner_, task_runner_, task_runner_, in VideoDecoderTest()
62 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::VideoDecoderTest
/external/chromium_org/media/cast/audio_receiver/
Daudio_receiver_unittest.cc79 task_runner_ = new test::FakeTaskRunner(&testing_clock_); in AudioReceiverTest()
80 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, in AudioReceiverTest()
81 task_runner_, task_runner_, task_runner_, task_runner_, in AudioReceiverTest()
112 scoped_refptr<test::FakeTaskRunner> task_runner_; member in media::cast::AudioReceiverTest
133 task_runner_->RunTasks(); in TEST_F()
155 task_runner_->RunTasks(); in TEST_F()
184 task_runner_->RunTasks(); in TEST_F()
194 task_runner_->RunTasks(); in TEST_F()
208 task_runner_->RunTasks(); in TEST_F()
/external/chromium_org/remoting/host/
Dlocal_input_monitor_unittest.cc43 scoped_refptr<AutoThreadTaskRunner> task_runner_; member in remoting::LocalInputMonitorTest
58 task_runner_ = new AutoThreadTaskRunner( in SetUp()
79 LocalInputMonitor::Create(task_runner_, in TEST_F()
80 task_runner_, in TEST_F()
81 task_runner_, in TEST_F()
83 task_runner_ = NULL; in TEST_F()
/external/chromium_org/components/policy/core/common/
Dpolicy_statistics_collector_unittest.cc77 task_runner_(new base::TestSimpleTaskRunner()) { in PolicyStatisticsCollectorTest()
105 task_runner_)); in SetUp()
114 if (task_runner_->GetPendingTasks().empty()) { in GetFirstDelay()
118 return task_runner_->GetPendingTasks().front().delay; in GetFirstDelay()
131 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; member in policy::PolicyStatisticsCollectorTest
145 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size()); in TEST_F()
160 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size()); in TEST_F()
171 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size()); in TEST_F()
188 EXPECT_EQ(1u, task_runner_->GetPendingTasks().size()); in TEST_F()
Dasync_policy_loader.cc32 : task_runner_(task_runner), in AsyncPolicyLoader()
42 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in Reload()
81 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in Init()
98 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in RefreshPolicies()
104 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in ScheduleNextReload()
106 task_runner_->PostDelayedTask(FROM_HERE, in ScheduleNextReload()
/external/chromium_org/remoting/base/
Dauto_thread_task_runner.cc15 task_runner_(task_runner) { in AutoThreadTaskRunner()
23 CHECK(task_runner_->PostDelayedTask(from_here, task, delay)); in PostDelayedTask()
31 CHECK(task_runner_->PostNonNestableDelayedTask(from_here, task, delay)); in PostNonNestableDelayedTask()
36 return task_runner_->RunsTasksOnCurrentThread(); in RunsTasksOnCurrentThread()
40 CHECK(task_runner_->PostTask(FROM_HERE, stop_task_)); in ~AutoThreadTaskRunner()
/external/chromium_org/webkit/browser/fileapi/
Dtimed_task_helper.cc25 : task_runner_(task_runner), in TimedTaskHelper()
30 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in ~TimedTaskHelper()
36 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in IsRunning()
51 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in Reset()
72 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in OnFired()
86 task_runner_->PostDelayedTask( in PostDelayedTask()
/external/chromium_org/chrome/browser/
Dimage_decoder.cc22 task_runner_(NULL) { in ImageDecoder()
28 task_runner_ = task_runner; in Start()
47 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in OnDecodeImageSucceeded()
53 DCHECK(task_runner_->RunsTasksOnCurrentThread()); in OnDecodeImageFailed()
62 utility_process_host = UtilityProcessHost::Create(this, task_runner_.get()); in DecodeImageInSandbox()
/external/chromium_org/content/browser/dom_storage/
Ddom_storage_area.cc63 task_runner_(task_runner), in DOMStorageArea()
85 task_runner_(task_runner), in DOMStorageArea()
209 session_storage_backing_.get(), task_runner_.get()); in ShallowCopy()
276 bool success = task_runner_->PostShutdownBlockingTask( in Shutdown()
329 task_runner_->PostDelayedTask( in CreateCommitBatchIfNeeded()
351 DCHECK(task_runner_->IsRunningOnPrimarySequence()); in OnCommitTimer()
352 bool success = task_runner_->PostShutdownBlockingTask( in OnCommitTimer()
363 DCHECK(task_runner_->IsRunningOnCommitSequence()); in CommitChanges()
367 task_runner_->PostTask( in CommitChanges()
374 DCHECK(task_runner_->IsRunningOnPrimarySequence()); in OnCommitComplete()
[all …]

1234567