| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 20 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
| 21 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" | 21 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" |
| 22 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 22 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 23 #include "storage/common/fileapi/file_system_util.h" | 23 #include "storage/common/fileapi/file_system_util.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 #define MAKE_PATH(path) \ | 26 #define MAKE_PATH(path) \ |
| 27 base::FilePath(storage::VirtualPath::GetNormalizedFilePath( \ | 27 base::FilePath(storage::VirtualPath::GetNormalizedFilePath( \ |
| 28 base::FilePath(FILE_PATH_LITERAL(path)))) | 28 base::FilePath(FILE_PATH_LITERAL(path)))) |
| 29 | 29 |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 | 640 |
| 641 EXPECT_EQ("task1: finished", log[i++]); | 641 EXPECT_EQ("task1: finished", log[i++]); |
| 642 | 642 |
| 643 EXPECT_EQ("task2: updating to /hoge/fuga/piyo", log[i++]); | 643 EXPECT_EQ("task2: updating to /hoge/fuga/piyo", log[i++]); |
| 644 EXPECT_EQ("task2: updated to /hoge/fuga/piyo", log[i++]); | 644 EXPECT_EQ("task2: updated to /hoge/fuga/piyo", log[i++]); |
| 645 EXPECT_EQ("task2: finished", log[i++]); | 645 EXPECT_EQ("task2: finished", log[i++]); |
| 646 } | 646 } |
| 647 | 647 |
| 648 } // namespace drive_backend | 648 } // namespace drive_backend |
| 649 } // namespace sync_file_system | 649 } // namespace sync_file_system |
| OLD | NEW |