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

Unified Diff: mojo/edk/system/waiter_test_utils.h

Issue 1412283002: Convert mojo::system::Dispatcher to use our new refcounting stuff (instead of base's). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: no change Created 5 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
« no previous file with comments | « mojo/edk/system/simple_dispatcher_unittest.cc ('k') | mojo/edk/system/waiter_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter_test_utils.h
diff --git a/mojo/edk/system/waiter_test_utils.h b/mojo/edk/system/waiter_test_utils.h
index ee2f68c721f9b823d198c8f6108ad625f77caeb1..b45ba09fa255dd7eebad1ed6e6a26a7d6a2c624e 100644
--- a/mojo/edk/system/waiter_test_utils.h
+++ b/mojo/edk/system/waiter_test_utils.h
@@ -7,9 +7,9 @@
#include <stdint.h>
-#include "base/memory/ref_counted.h"
#include "mojo/edk/system/dispatcher.h"
#include "mojo/edk/system/handle_signals_state.h"
+#include "mojo/edk/system/ref_ptr.h"
#include "mojo/edk/system/waiter.h"
#include "mojo/edk/test/simple_test_thread.h"
#include "mojo/public/c/system/types.h"
@@ -70,7 +70,7 @@ class WaiterThread : public mojo::test::SimpleTestThread {
// Note: |*did_wait_out|, |*result_out|, |*context_out| and
// |*signals_state_out| "belong" to this object (i.e., may be modified by, on
// some other thread) while it's alive.
- WaiterThread(scoped_refptr<Dispatcher> dispatcher,
+ WaiterThread(RefPtr<Dispatcher>&& dispatcher,
MojoHandleSignals handle_signals,
MojoDeadline deadline,
uint32_t context,
@@ -83,7 +83,7 @@ class WaiterThread : public mojo::test::SimpleTestThread {
private:
void Run() override;
- const scoped_refptr<Dispatcher> dispatcher_;
+ const RefPtr<Dispatcher> dispatcher_;
const MojoHandleSignals handle_signals_;
const MojoDeadline deadline_;
const uint32_t context_;
« no previous file with comments | « mojo/edk/system/simple_dispatcher_unittest.cc ('k') | mojo/edk/system/waiter_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698