Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Issue 1876903005: Implements TestMessageLoop that flushes pending tasks on destruction. (Closed)

Created:
4 years, 8 months ago by alokp
Modified:
4 years, 8 months ago
Reviewers:
danakj
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implements TestMessageLoop that flushes pending tasks on destruction. This is intended to be used by unittests that need MessageLoop without a thread and need to run all posted tasks before exiting for a clean teardown. Committed: https://crrev.com/42544a8df04b15f7903481bdaf9a9efd6643d332 Cr-Commit-Position: refs/heads/master@{#386548}

Patch Set 1 #

Patch Set 2 : fixed formatting #

Total comments: 2

Patch Set 3 : added ws #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -0 lines) Patch
M base/base.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A base/test/test_message_loop.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A base/test/test_message_loop.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
alokp
Dana: I plan to use it in this patch https://codereview.chromium.org/1806313003/ to ensure that AudioManager instance, ...
4 years, 8 months ago (2016-04-11 21:50:26 UTC) #2
danakj
LGTM https://codereview.chromium.org/1876903005/diff/20001/base/test/test_message_loop.h File base/test/test_message_loop.h (right): https://codereview.chromium.org/1876903005/diff/20001/base/test/test_message_loop.h#newcode29 base/test/test_message_loop.h:29: #endif // BASE_TEST_TEST_MESSAGE_LOOP_H_ whitespace above this.
4 years, 8 months ago (2016-04-11 21:56:06 UTC) #3
danakj
On 2016/04/11 21:50:26, alokp wrote: > Dana: I plan to use it in this patch ...
4 years, 8 months ago (2016-04-11 21:57:02 UTC) #4
alokp
Good idea. I can look at the memory suppressions for unittests and convert the ones ...
4 years, 8 months ago (2016-04-11 22:15:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876903005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876903005/40001
4 years, 8 months ago (2016-04-11 22:17:05 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-12 01:54:04 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 01:55:30 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/42544a8df04b15f7903481bdaf9a9efd6643d332
Cr-Commit-Position: refs/heads/master@{#386548}

Powered by Google App Engine
This is Rietveld 408576698