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

Unified Diff: third_party/libjingle_xmpp/task_runner/task_unittest.cc

Issue 2803023002: Add calls to WrapCurrentThread and UnwrapCurrentThread. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libjingle_xmpp/task_runner/task_unittest.cc
diff --git a/third_party/libjingle_xmpp/task_runner/task_unittest.cc b/third_party/libjingle_xmpp/task_runner/task_unittest.cc
index 7408ec4ae229274ff4011c36a58815a52a9214fe..8618f26f2244f4a8e921b70a1c12f9c5ddd27f9d 100644
--- a/third_party/libjingle_xmpp/task_runner/task_unittest.cc
+++ b/third_party/libjingle_xmpp/task_runner/task_unittest.cc
@@ -97,6 +97,9 @@ class HappyTask : public IdTimeoutTask {
class MyTaskRunner : public TaskRunner {
public:
+ MyTaskRunner() { ThreadManager::Instance()->WrapCurrentThread(); }
+ ~MyTaskRunner() { ThreadManager::Instance()->UnwrapCurrentThread(); }
+
virtual void WakeTasks() { RunTasks(); }
virtual int64_t CurrentTime() { return GetCurrentTime(); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698