summaryrefslogtreecommitdiffstats
path: root/base/test/test_pending_task.cc
Commit message (Collapse)AuthorAgeFilesLines
* Random fixes for scoped_refptr operator T* removal.dcheng2014-09-051-1/+1
| | | | | | | | | BUG=110610 TBR=caitkp, michaeln, rockot, sievers, sky, willchan Review URL: https://codereview.chromium.org/543893002 Cr-Commit-Position: refs/heads/master@{#293453}
* Adding tracing and gtest pretty printing support to TestPendingTask.mithro2014-08-281-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions where invaluable when trying to debug and fix the cc::OrderedTestRunner as they let me easily inspect the tasks without having to fire up GDB. They should also be useful in development / testing of other task runners. Added a very simple test for ShouldRunBefore which shows this stuff working. If that test fails, the output looks like the following; ------------------------------------------------------------------------------- ../../base/test/test_pending_task_unittest.cc:49: Failure Value of: task_after.ShouldRunBefore(task_first) Actual: false Expected: true TestPendingTask( {"delay":2000,"nestability":"NESTABLE","post_time":0, "posting_function":"Unknown@Unknown:-1","run_at":2000} ).ShouldRunBefore(TestPendingTask( {"delay":1000,"nestability":"NESTABLE","post_time":0, "posting_function":"Unknown@Unknown:-1","run_at":1000}) ) ------------------------------------------------------------------------------- BUG=380889 Review URL: https://codereview.chromium.org/491743002 Cr-Commit-Position: refs/heads/master@{#292370}
* Unify various test TaskRunner implementationsakalin@chromium.org2012-12-191-0/+35
Remove various ad-hoc test implementations of TaskRunner and implement TestSimpleTaskRunner instead. Add TestPendingTask class for use by test TaskRunner implementations. Clean up TestTaskRunner implementation in net/ and make it use TestPendingTask. BUG=165806 Review URL: https://codereview.chromium.org/11554036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174016 0039d316-1c4b-4281-b951-d872f2087c98