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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc

Issue 2871303004: Rename TaskRunner::RunsTasksOnCurrentThread() in //chrome (Closed)
Patch Set: fixed build error Created 3 years, 7 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: chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc b/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
index 1edaeab8a4738e876b76428d9a8dad17c46899a2..bf74fee59602989e052bee05b118fcaa25977ee9 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
@@ -129,7 +129,7 @@ class LocalFileSyncContextTest : public testing::Test {
SyncStatusCode status,
const LocalFileSyncInfo& sync_file_info,
storage::ScopedFile snapshot) {
- ASSERT_TRUE(ui_task_runner_->RunsTasksOnCurrentThread());
+ ASSERT_TRUE(ui_task_runner_->RunsTasksInCurrentSequence());
has_inflight_prepare_for_sync_ = false;
status_ = status;
*metadata_out = sync_file_info.metadata;
@@ -179,16 +179,16 @@ class LocalFileSyncContextTest : public testing::Test {
void StartModifyFileOnIOThread(CannedSyncableFileSystem* file_system,
const FileSystemURL& url) {
ASSERT_TRUE(file_system != nullptr);
- if (!io_task_runner_->RunsTasksOnCurrentThread()) {
+ if (!io_task_runner_->RunsTasksInCurrentSequence()) {
async_modify_finished_ = false;
- ASSERT_TRUE(ui_task_runner_->RunsTasksOnCurrentThread());
+ ASSERT_TRUE(ui_task_runner_->RunsTasksInCurrentSequence());
io_task_runner_->PostTask(
FROM_HERE,
base::BindOnce(&LocalFileSyncContextTest::StartModifyFileOnIOThread,
base::Unretained(this), file_system, url));
return;
}
- ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
+ ASSERT_TRUE(io_task_runner_->RunsTasksInCurrentSequence());
file_error_ = base::File::FILE_ERROR_FAILED;
file_system->operation_runner()->Truncate(
url, 1, base::Bind(&LocalFileSyncContextTest::DidModifyFile,
@@ -202,14 +202,14 @@ class LocalFileSyncContextTest : public testing::Test {
}
void DidModifyFile(base::File::Error error) {
- if (!ui_task_runner_->RunsTasksOnCurrentThread()) {
- ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
+ if (!ui_task_runner_->RunsTasksInCurrentSequence()) {
+ ASSERT_TRUE(io_task_runner_->RunsTasksInCurrentSequence());
ui_task_runner_->PostTask(
FROM_HERE, base::BindOnce(&LocalFileSyncContextTest::DidModifyFile,
base::Unretained(this), error));
return;
}
- ASSERT_TRUE(ui_task_runner_->RunsTasksOnCurrentThread());
+ ASSERT_TRUE(ui_task_runner_->RunsTasksInCurrentSequence());
file_error_ = error;
async_modify_finished_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698