Home
last modified time | relevance | path

Searched refs:TestTimeouts (Results 1 – 25 of 80) sorted by relevance

1234

/external/cronet/base/test/
Dtest_timeouts.h13 class TestTimeouts {
15 TestTimeouts() = delete;
16 TestTimeouts(const TestTimeouts&) = delete;
17 TestTimeouts& operator=(const TestTimeouts&) = delete;
Dtest_timeouts.cc91 bool TestTimeouts::initialized_ = false;
95 base::TimeDelta TestTimeouts::tiny_timeout_ = base::Milliseconds(100);
96 base::TimeDelta TestTimeouts::action_timeout_ = base::Seconds(10);
97 base::TimeDelta TestTimeouts::action_max_timeout_ = base::Seconds(30);
98 base::TimeDelta TestTimeouts::test_launcher_timeout_ = base::Seconds(45);
101 void TestTimeouts::Initialize() { in Initialize()
/external/libchrome/base/test/
Dtest_timeouts.cc59 bool TestTimeouts::initialized_ = false;
63 int TestTimeouts::tiny_timeout_ms_ = 100;
64 int TestTimeouts::action_timeout_ms_ = 10000;
66 int TestTimeouts::action_max_timeout_ms_ = 45000;
68 int TestTimeouts::action_max_timeout_ms_ = 30000;
71 int TestTimeouts::test_launcher_timeout_ms_ = 45000;
74 void TestTimeouts::Initialize() { in Initialize()
Dtest_timeouts.h14 class TestTimeouts {
58 DISALLOW_IMPLICIT_CONSTRUCTORS(TestTimeouts);
Dtest_file_util.cc14 const TimeDelta kDelay = TestTimeouts::action_timeout() / kCycles; in EvictFileFromSystemCacheWithRetry()
/external/cronet/base/mac/
Dmach_port_rendezvous_unittest.cc89 port.get(), TestTimeouts::action_timeout().InMilliseconds(), in TEST_F()
97 child, TestTimeouts::action_timeout(), &exit_code)); in TEST_F()
117 child, TestTimeouts::action_timeout(), &exit_code)); in TEST_F()
150 child, TestTimeouts::action_timeout(), &exit_code)); in TEST_F()
164 } while ((TimeTicks::Now() - start) < TestTimeouts::action_timeout()); in TEST_F()
240 child, TestTimeouts::action_timeout(), &exit_code)); in TEST_F()
/external/cronet/base/task/thread_pool/
Dthread_pool_impl_unittest.cc404 TimeTicks::Now() + TestTimeouts::tiny_timeout(), in TEST_P()
406 TestTimeouts::tiny_timeout()); in TEST_P()
448 TimeTicks::Now() + TestTimeouts::tiny_timeout(), in TEST_P()
450 TimeTicks::Now() + TestTimeouts::tiny_timeout(), in TEST_P()
490 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
506 TimeTicks::Now() + TestTimeouts::tiny_timeout(), in TEST_P()
508 TestTimeouts::tiny_timeout()); in TEST_P()
514 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
544 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
584 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
[all …]
Dcan_run_policy_test.h52 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TestCanRunPolicyBasic()
59 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TestCanRunPolicyBasic()
122 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TestCanRunPolicyChangedBeforeRun()
Dtracked_ref_unittest.cc72 TestTimeouts::tiny_timeout()); in TEST()
77 EXPECT_GE(TimeTicks::Now() - begin, TestTimeouts::tiny_timeout()); in TEST()
Dtask_tracker_unittest.cc191 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in ExpectAsyncCompleteShutdownBlocks()
657 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
674 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
723 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
736 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
785 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
793 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
882 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
/external/libchrome/base/process/
Dprocess_unittest.cc127 PlatformThread::Sleep(TestTimeouts::action_max_timeout()); in MULTIPROCESS_TEST_MAIN()
144 process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
179 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
192 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
198 PlatformThread::Sleep(TestTimeouts::tiny_timeout() * 10); in MULTIPROCESS_TEST_MAIN()
218 TimeDelta timeout = TestTimeouts::tiny_timeout(); in TEST_F()
Dprocess_util_unittest.cc140 waited < TestTimeouts::action_max_timeout()); in WaitForChildTermination()
188 EXPECT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
205 EXPECT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
705 TestTimeouts::action_max_timeout(), nullptr); in TEST_F()
732 TestTimeouts::action_max_timeout(), nullptr); in TEST_F()
738 TestTimeouts::action_max_timeout(), nullptr)); in TEST_F()
795 EXPECT_TRUE(event.TimedWait(TestTimeouts::action_max_timeout())); in TEST_F()
1132 (base::TimeTicks::Now() + TestTimeouts::action_timeout()).ToZxTime(), in TEST_F()
1147 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_timeout(), in TEST_F()
/external/libchrome/base/task_scheduler/
Dtask_scheduler_impl_unittest.cc289 TimeTicks::Now() + TestTimeouts::tiny_timeout(), in TEST_P()
291 TestTimeouts::tiny_timeout()); in TEST_P()
329 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
343 TimeTicks::Now() + TestTimeouts::tiny_timeout(), in TEST_P()
345 TestTimeouts::tiny_timeout()); in TEST_P()
351 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
372 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
434 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
573 TestTimeouts::tiny_timeout()); in TEST_F()
575 PlatformThread::Sleep(TestTimeouts::tiny_timeout() * 2); in TEST_F()
[all …]
Dtask_tracker_unittest.cc605 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
622 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
637 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
649 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
666 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
679 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
699 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
707 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
730 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
738 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
[all …]
Dscheduler_worker_pool_unittest.cc254 TestTimeouts::tiny_timeout())); in TEST_P()
262 EXPECT_GE(actual_delay, TestTimeouts::tiny_timeout()); in TEST_P()
264 TimeDelta::FromMilliseconds(250) + TestTimeouts::tiny_timeout()); in TEST_P()
307 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_P()
Dtracked_ref_unittest.cc71 TestTimeouts::tiny_timeout()); in TEST()
76 EXPECT_GE(TimeTicks::Now() - begin, TestTimeouts::tiny_timeout()); in TEST()
Dscheduler_single_thread_task_runner_manager_unittest.cc369 TestTimeouts::tiny_timeout())); in TEST_P()
377 EXPECT_GE(actual_delay, TestTimeouts::tiny_timeout()); in TEST_P()
379 TimeDelta::FromMilliseconds(250) + TestTimeouts::tiny_timeout()); in TEST_P()
653 PlatformThread::Sleep(TestTimeouts::tiny_timeout()); in TEST_F()
/external/cronet/net/base/
Dfuzzer_test_support.cc24 TestTimeouts::Initialize(); in InitGlobals()
30 FROM_HERE, TestTimeouts::action_max_timeout()); in InitGlobals()
/external/libchrome/mojo/core/
Dtest_utils.cc42 TestTimeouts::tiny_timeout().InMicroseconds()); in TinyDeadline()
47 TestTimeouts::action_timeout().InMicroseconds()); in ActionDeadline()
Dinvitation_unittest.cc463 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
505 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
546 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
660 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
696 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
760 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
846 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
863 child_process, TestTimeouts::action_timeout(), &wait_result); in TEST_F()
/external/cronet/base/process/
Dprocess_unittest.cc178 PlatformThread::Sleep(TestTimeouts::action_max_timeout()); in MULTIPROCESS_TEST_MAIN()
236 process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
273 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
286 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
292 PlatformThread::Sleep(TestTimeouts::tiny_timeout() * 10); in MULTIPROCESS_TEST_MAIN()
310 TimeDelta timeout = TestTimeouts::tiny_timeout(); in TEST_F()
Dprocess_util_unittest.cc146 waited < TestTimeouts::action_max_timeout()); in WaitForChildTermination()
196 EXPECT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
212 EXPECT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_max_timeout(), in TEST_F()
781 TestTimeouts::action_max_timeout(), nullptr); in TEST_F()
807 TestTimeouts::action_max_timeout(), nullptr); in TEST_F()
813 TestTimeouts::action_max_timeout(), nullptr)); in TEST_F()
891 EXPECT_TRUE(event.TimedWait(TestTimeouts::action_max_timeout())); in TEST_F()
1224 (TimeTicks::Now() + TestTimeouts::action_timeout()).ToZxTime(), &signals); in TEST_F()
1238 ASSERT_TRUE(process.WaitForExitWithTimeout(TestTimeouts::action_timeout(), in TEST_F()
/external/cronet/net/proxy_resolution/win/
Ddhcp_pac_file_fetcher_win_unittest.cc343 max_wait_ = TestTimeouts::tiny_timeout(); in ResetTestState()
475 TestTimeouts::action_timeout()); in TestNormalCaseURLConfiguredMultipleAdaptersWithTimeout()
500 TestTimeouts::action_timeout()); in TestFailureCaseURLConfiguredMultipleAdaptersWithTimeout()
530 TestTimeouts::action_timeout()); in TestFailureCaseNoURLConfigured()
574 "3", true, OK, u"wrongo", TestTimeouts::action_max_timeout()); in TestShortCircuitLessPreferredAdapters()
578 client->fetcher_.max_wait_ = TestTimeouts::action_timeout(); in TestShortCircuitLessPreferredAdapters()
/external/cronet/base/android/
Dchild_process_unittest.cc30 process, TestTimeouts::action_timeout(), &exit_code)); in TEST_F()
/external/libchrome/base/files/
Dfile_locking_unittest.cc144 TestTimeouts::action_timeout()); in WaitForEventOrTimeout()
169 lock_child_, TestTimeouts::action_timeout(), &rv)); in ExitChildCleanly()

1234