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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_unittest.cc

Issue 2962443002: Rename TaskRunner::RunsTasksOnCurrentThread() in //remoting, //android_webview (Closed)
Patch Set: Created 3 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: remoting/host/it2me/it2me_native_messaging_host_unittest.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host_unittest.cc b/remoting/host/it2me/it2me_native_messaging_host_unittest.cc
index 962456c8aff0ff52708298a7f558527990f541c4..30d6dbc86bb950bc3d281f177c1e35b7bfb9db4c 100644
--- a/remoting/host/it2me/it2me_native_messaging_host_unittest.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host_unittest.cc
@@ -287,7 +287,7 @@ void It2MeNativeMessagingHostTest::TearDown() {
void It2MeNativeMessagingHostTest::SetPolicies(
const base::DictionaryValue& dict) {
- DCHECK(test_message_loop_->task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(test_message_loop_->task_runner()->RunsTasksInCurrentSequence());
// Copy |dict| into |policy_bundle|.
policy::PolicyNamespace policy_namespace =
policy::PolicyNamespace(policy::POLICY_DOMAIN_CHROME, std::string());
@@ -494,7 +494,7 @@ void It2MeNativeMessagingHostTest::TestBadRequest(const base::Value& message,
}
void It2MeNativeMessagingHostTest::StartHost() {
- DCHECK(host_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(host_task_runner_->RunsTasksInCurrentSequence());
base::File input_read_file;
base::File output_write_file;
@@ -536,7 +536,7 @@ void It2MeNativeMessagingHostTest::StartHost() {
}
void It2MeNativeMessagingHostTest::ExitTest() {
- if (!test_message_loop_->task_runner()->RunsTasksOnCurrentThread()) {
+ if (!test_message_loop_->task_runner()->RunsTasksInCurrentSequence()) {
test_message_loop_->task_runner()->PostTask(
FROM_HERE,
base::Bind(&It2MeNativeMessagingHostTest::ExitTest,
@@ -547,7 +547,7 @@ void It2MeNativeMessagingHostTest::ExitTest() {
}
void It2MeNativeMessagingHostTest::ExitPolicyRunLoop() {
- DCHECK(test_message_loop_->task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(test_message_loop_->task_runner()->RunsTasksInCurrentSequence());
if (policy_run_loop_) {
policy_run_loop_->Quit();
}
« no previous file with comments | « android_webview/browser/net/aw_cookie_store_wrapper.cc ('k') | remoting/host/native_messaging/native_messaging_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698