OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/file_system.h" | 5 #include "chrome/browser/chromeos/drive/file_system.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/file_util.h" | |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/prefs/testing_pref_service.h" | 16 #include "base/prefs/testing_pref_service.h" |
17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
18 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 18 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
19 #include "chrome/browser/chromeos/drive/drive.pb.h" | 19 #include "chrome/browser/chromeos/drive/drive.pb.h" |
20 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 20 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
21 #include "chrome/browser/chromeos/drive/file_change.h" | 21 #include "chrome/browser/chromeos/drive/file_change.h" |
22 #include "chrome/browser/chromeos/drive/file_system_observer.h" | 22 #include "chrome/browser/chromeos/drive/file_system_observer.h" |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 kEmbedOrigin, | 967 kEmbedOrigin, |
968 google_apis::test_util::CreateCopyResultCallback(&error, &share_url)); | 968 google_apis::test_util::CreateCopyResultCallback(&error, &share_url)); |
969 content::RunAllBlockingPoolTasksUntilIdle(); | 969 content::RunAllBlockingPoolTasksUntilIdle(); |
970 | 970 |
971 // Verify the share url to the sharing dialog. | 971 // Verify the share url to the sharing dialog. |
972 EXPECT_EQ(FILE_ERROR_OK, error); | 972 EXPECT_EQ(FILE_ERROR_OK, error); |
973 EXPECT_TRUE(share_url.is_valid()); | 973 EXPECT_TRUE(share_url.is_valid()); |
974 } | 974 } |
975 | 975 |
976 } // namespace drive | 976 } // namespace drive |
OLD | NEW |