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

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

Issue 2608163003: Change single-interface mojo bindings to use SequencedTaskRunner. (Closed)
Patch Set: Created 3 years, 11 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/public/cpp/bindings/tests/BUILD.gn ('k') | mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/e2e_perftest.cc
diff --git a/mojo/public/cpp/bindings/tests/e2e_perftest.cc b/mojo/public/cpp/bindings/tests/e2e_perftest.cc
index bc69e0f72727a6669f15b685368a1a04fab8fa35..87c0b332a3c8bb557564f9df3f32449428805774 100644
--- a/mojo/public/cpp/bindings/tests/e2e_perftest.cc
+++ b/mojo/public/cpp/bindings/tests/e2e_perftest.cc
@@ -12,7 +12,7 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/perf_time_logger.h"
-#include "base/threading/thread_task_runner_handle.h"
+#include "base/threading/sequenced_task_runner_handle.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/test/mojo_test_base.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -85,7 +85,7 @@ void PingPongTest::RunTest(int iterations, int batch_size, int message_size) {
base::MessageLoop::current()->SetNestableTasksAllowed(true);
base::RunLoop run_loop;
quit_closure_ = run_loop.QuitClosure();
- base::ThreadTaskRunnerHandle::Get()->PostTask(
+ base::SequencedTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&PingPongTest::DoPing, base::Unretained(this)));
run_loop.Run();
}
@@ -117,7 +117,7 @@ class MojoE2EPerftest : public edk::test::MojoTestBase {
void RunTestOnTaskRunner(base::TaskRunner* runner,
MojoHandle client_mp,
const std::string& test_name) {
- if (runner == base::ThreadTaskRunnerHandle::Get().get()) {
+ if (runner == base::SequencedTaskRunnerHandle::Get().get()) {
RunTests(client_mp, test_name);
} else {
base::RunLoop run_loop;
« no previous file with comments | « mojo/public/cpp/bindings/tests/BUILD.gn ('k') | mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698