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

Unified Diff: mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/public/cpp/bindings/tests/bind_task_runner_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc b/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
index 7cb782db3562380912f4162102b167aec10392ab..dab64f012d16f86364bfc529f6493481b877f1be 100644
--- a/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "base/callback.h"
#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/synchronization/lock.h"
@@ -124,7 +125,7 @@ class IntegerSenderImpl : public IntegerSender {
~IntegerSenderImpl() override {}
- using EchoHandler = Callback<void(int32_t, const EchoCallback&)>;
+ using EchoHandler = base::Callback<void(int32_t, const EchoCallback&)>;
void set_echo_handler(const EchoHandler& handler) { echo_handler_ = handler; }
@@ -157,7 +158,7 @@ class IntegerSenderConnectionImpl : public IntegerSenderConnection {
~IntegerSenderConnectionImpl() override {}
- void set_get_sender_notification(const Closure& notification) {
+ void set_get_sender_notification(const base::Closure& notification) {
get_sender_notification_ = notification;
}
void GetSender(IntegerSenderAssociatedRequest sender) override {
@@ -177,7 +178,7 @@ class IntegerSenderConnectionImpl : public IntegerSenderConnection {
Binding<IntegerSenderConnection> binding_;
std::unique_ptr<SenderType> sender_impl_;
scoped_refptr<base::SingleThreadTaskRunner> sender_runner_;
- Closure get_sender_notification_;
+ base::Closure get_sender_notification_;
};
class BindTaskRunnerTest : public testing::Test {

Powered by Google App Engine
This is Rietveld 408576698