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

Unified Diff: base/synchronization/waitable_event_watcher_unittest.cc

Issue 7529003: Make base::MessageLoops have names at construction time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add name argument to MessageLoop Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/synchronization/waitable_event_watcher_unittest.cc
diff --git a/base/synchronization/waitable_event_watcher_unittest.cc b/base/synchronization/waitable_event_watcher_unittest.cc
index 1715dff99fef88f19a4d2674e7f48a80df72272c..1afad501bb98de0ea05ae9373d77d1b01e4e66e8 100644
--- a/base/synchronization/waitable_event_watcher_unittest.cc
+++ b/base/synchronization/waitable_event_watcher_unittest.cc
@@ -31,7 +31,7 @@ class DecrementCountDelegate : public WaitableEventWatcher::Delegate {
};
void RunTest_BasicSignal(MessageLoop::Type message_loop_type) {
- MessageLoop message_loop(message_loop_type);
+ MessageLoop message_loop("RunTest", message_loop_type);
// A manual-reset event that is not yet signaled.
WaitableEvent event(true, false);
@@ -51,7 +51,7 @@ void RunTest_BasicSignal(MessageLoop::Type message_loop_type) {
}
void RunTest_BasicCancel(MessageLoop::Type message_loop_type) {
- MessageLoop message_loop(message_loop_type);
+ MessageLoop message_loop("RunTest", message_loop_type);
// A manual-reset event that is not yet signaled.
WaitableEvent event(true, false);
@@ -65,7 +65,7 @@ void RunTest_BasicCancel(MessageLoop::Type message_loop_type) {
}
void RunTest_CancelAfterSet(MessageLoop::Type message_loop_type) {
- MessageLoop message_loop(message_loop_type);
+ MessageLoop message_loop("RunTest", message_loop_type);
// A manual-reset event that is not yet signaled.
WaitableEvent event(true, false);
@@ -98,7 +98,7 @@ void RunTest_OutlivesMessageLoop(MessageLoop::Type message_loop_type) {
{
WaitableEventWatcher watcher;
{
- MessageLoop message_loop(message_loop_type);
+ MessageLoop message_loop("RunTest", message_loop_type);
QuitDelegate delegate;
watcher.StartWatching(&event, &delegate);
@@ -110,7 +110,7 @@ void RunTest_DeleteUnder(MessageLoop::Type message_loop_type) {
// Delete the WaitableEvent out from under the Watcher. This is explictly
// allowed by the interface.
- MessageLoop message_loop(message_loop_type);
+ MessageLoop message_loop("RunTest", message_loop_type);
{
WaitableEventWatcher watcher;

Powered by Google App Engine
This is Rietveld 408576698