X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fsync_file_system%2Fdrive_backend%2Fsync_task_manager_unittest.cc;h=2a0401a4cabaafe9884c9eccb315c884d7d1e0f7;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=2ea02bea464ea8b905090f0c0c212bd15fadcef8;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/sync_file_system/drive_backend/sync_task_manager_unittest.cc b/src/chrome/browser/sync_file_system/drive_backend/sync_task_manager_unittest.cc index 2ea02be..2a0401a 100644 --- a/src/chrome/browser/sync_file_system/drive_backend/sync_task_manager_unittest.cc +++ b/src/chrome/browser/sync_file_system/drive_backend/sync_task_manager_unittest.cc @@ -15,11 +15,11 @@ #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" +#include "storage/common/fileapi/file_system_util.h" #include "testing/gtest/include/gtest/gtest.h" -#include "webkit/common/fileapi/file_system_util.h" #define MAKE_PATH(path) \ - base::FilePath(fileapi::VirtualPath::GetNormalizedFilePath( \ + base::FilePath(storage::VirtualPath::GetNormalizedFilePath( \ base::FilePath(FILE_PATH_LITERAL(path)))) namespace sync_file_system { @@ -192,12 +192,12 @@ class BackgroundTask : public SyncTask { } virtual void RunPreflight(scoped_ptr token) OVERRIDE { - scoped_ptr blocking_factor(new BlockingFactor); - blocking_factor->app_id = app_id_; - blocking_factor->paths.push_back(path_); + scoped_ptr task_blocker(new TaskBlocker); + task_blocker->app_id = app_id_; + task_blocker->paths.push_back(path_); - SyncTaskManager::UpdateBlockingFactor( - token.Pass(), blocking_factor.Pass(), + SyncTaskManager::UpdateTaskBlocker( + token.Pass(), task_blocker.Pass(), base::Bind(&BackgroundTask::RunAsBackgroundTask, weak_ptr_factory_.GetWeakPtr())); } @@ -265,14 +265,14 @@ class BlockerUpdateTestHelper : public SyncTask { log_->push_back(name_ + ": updating to " + updating_to); - scoped_ptr blocking_factor(new BlockingFactor); - blocking_factor->app_id = app_id_; - blocking_factor->paths.push_back( - base::FilePath(fileapi::VirtualPath::GetNormalizedFilePath( + scoped_ptr task_blocker(new TaskBlocker); + task_blocker->app_id = app_id_; + task_blocker->paths.push_back( + base::FilePath(storage::VirtualPath::GetNormalizedFilePath( base::FilePath::FromUTF8Unsafe(updating_to)))); - SyncTaskManager::UpdateBlockingFactor( - token.Pass(), blocking_factor.Pass(), + SyncTaskManager::UpdateTaskBlocker( + token.Pass(), task_blocker.Pass(), base::Bind(&BlockerUpdateTestHelper::UpdateBlockerSoon, weak_ptr_factory_.GetWeakPtr(), updating_to)); @@ -599,7 +599,7 @@ TEST(SyncTaskManagerTest, BackgroundTask_Throttled) { EXPECT_EQ(2, stats.max_parallel_task); } -TEST(SyncTaskManagerTest, UpdateBlockingFactor) { +TEST(SyncTaskManagerTest, UpdateTaskBlocker) { base::MessageLoop message_loop; SyncTaskManager task_manager(base::WeakPtr(), 10 /* maximum_background_task */,