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

Unified Diff: mojo/python/tests/async_wait_unittest.py

Issue 644773002: mojo: Add RunLoop::Current() and refactor unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: mojo/python/tests/async_wait_unittest.py
diff --git a/mojo/python/tests/async_wait_unittest.py b/mojo/python/tests/async_wait_unittest.py
index 849b3cbaf7b426e116365150673a60b12e782c13..6ca68eefa6eb5b3971a3af34a354ce0c637a0c8e 100644
--- a/mojo/python/tests/async_wait_unittest.py
+++ b/mojo/python/tests/async_wait_unittest.py
@@ -2,18 +2,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import unittest
+import mojo_unittest
# pylint: disable=F0401
-import mojo.embedder
from mojo import system
-class AsyncWaitTest(unittest.TestCase):
+class AsyncWaitTest(mojo_unittest.MojoTestCase):
def setUp(self):
- mojo.embedder.Init()
- self.loop = system.RunLoop()
+ super(AsyncWaitTest, self).setUp()
self.array = []
self.handles = system.MessagePipe()
self.cancel = self.handles.handle0.AsyncWait(system.HANDLE_SIGNAL_READABLE,
@@ -24,7 +22,7 @@ class AsyncWaitTest(unittest.TestCase):
self.cancel()
self.handles = None
self.array = None
- self.loop = None
+ super(AsyncWaitTest, self).tearDown()
def _OnResult(self, value):
self.array.append(value)

Powered by Google App Engine
This is Rietveld 408576698