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 <deque> | 5 #include <deque> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
13 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" |
15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 16 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webkit/common/fileapi/file_system_util.h" | 18 #include "webkit/common/fileapi/file_system_util.h" |
18 | 19 |
19 #define MAKE_PATH(path) \ | 20 #define MAKE_PATH(path) \ |
20 base::FilePath(fileapi::VirtualPath::GetNormalizedFilePath( \ | 21 base::FilePath(fileapi::VirtualPath::GetNormalizedFilePath( \ |
21 base::FilePath(FILE_PATH_LITERAL(path)))) | 22 base::FilePath(FILE_PATH_LITERAL(path)))) |
22 | 23 |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 | 654 |
654 EXPECT_EQ("task1: finished", log[i++]); | 655 EXPECT_EQ("task1: finished", log[i++]); |
655 | 656 |
656 EXPECT_EQ("task2: updating to /hoge/fuga/piyo", log[i++]); | 657 EXPECT_EQ("task2: updating to /hoge/fuga/piyo", log[i++]); |
657 EXPECT_EQ("task2: updated to /hoge/fuga/piyo", log[i++]); | 658 EXPECT_EQ("task2: updated to /hoge/fuga/piyo", log[i++]); |
658 EXPECT_EQ("task2: finished", log[i++]); | 659 EXPECT_EQ("task2: finished", log[i++]); |
659 } | 660 } |
660 | 661 |
661 } // namespace drive_backend | 662 } // namespace drive_backend |
662 } // namespace sync_file_system | 663 } // namespace sync_file_system |
OLD | NEW |