OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/drive/sync/entry_revert_performer.h" | 5 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h" |
6 | 6 |
7 #include "base/task_runner_util.h" | 7 #include "base/task_runner_util.h" |
8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
9 #include "chrome/browser/chromeos/drive/file_system_interface.h" | |
10 #include "chrome/browser/chromeos/drive/file_system_util.h" | 9 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 10 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
11 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 11 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
12 #include "chrome/browser/drive/fake_drive_service.h" | 12 #include "chrome/browser/drive/fake_drive_service.h" |
13 #include "google_apis/drive/test_util.h" | 13 #include "google_apis/drive/test_util.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace drive { | 16 namespace drive { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 class EntryRevertPerformerTest : public file_system::OperationTestBase { | 19 class EntryRevertPerformerTest : public file_system::OperationTestBase { |
20 protected: | 20 protected: |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Verify the entry was deleted locally. | 137 // Verify the entry was deleted locally. |
138 EXPECT_EQ(FILE_ERROR_NOT_FOUND, | 138 EXPECT_EQ(FILE_ERROR_NOT_FOUND, |
139 GetLocalResourceEntryById(entry.local_id(), &entry)); | 139 GetLocalResourceEntryById(entry.local_id(), &entry)); |
140 | 140 |
141 EXPECT_EQ(1U, observer()->get_changed_paths().size()); | 141 EXPECT_EQ(1U, observer()->get_changed_paths().size()); |
142 EXPECT_TRUE(observer()->get_changed_paths().count(path.DirName())); | 142 EXPECT_TRUE(observer()->get_changed_paths().count(path.DirName())); |
143 } | 143 } |
144 | 144 |
145 } // namespace internal | 145 } // namespace internal |
146 } // namespace drive | 146 } // namespace drive |
OLD | NEW |