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/file_system/download_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/task_runner_util.h" | 8 #include "base/task_runner_util.h" |
9 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 9 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
10 #include "chrome/browser/chromeos/drive/file_cache.h" | 10 #include "chrome/browser/chromeos/drive/file_cache.h" |
11 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 11 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
12 #include "chrome/browser/chromeos/drive/file_system_util.h" | 12 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 13 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
13 #include "chrome/browser/drive/fake_drive_service.h" | 14 #include "chrome/browser/drive/fake_drive_service.h" |
14 #include "google_apis/drive/test_util.h" | 15 #include "google_apis/drive/test_util.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/cros_system_api/constants/cryptohome.h" | 17 #include "third_party/cros_system_api/constants/cryptohome.h" |
17 | 18 |
18 namespace drive { | 19 namespace drive { |
19 namespace file_system { | 20 namespace file_system { |
20 | 21 |
21 class DownloadOperationTest : public OperationTestBase { | 22 class DownloadOperationTest : public OperationTestBase { |
22 protected: | 23 protected: |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 497 |
497 int64 cache_file_size = 0; | 498 int64 cache_file_size = 0; |
498 EXPECT_TRUE(base::GetFileSize(cache_file_path, &cache_file_size)); | 499 EXPECT_TRUE(base::GetFileSize(cache_file_path, &cache_file_size)); |
499 EXPECT_EQ(static_cast<int64>(0), cache_file_size); | 500 EXPECT_EQ(static_cast<int64>(0), cache_file_size); |
500 ASSERT_TRUE(entry); | 501 ASSERT_TRUE(entry); |
501 EXPECT_EQ(cache_file_size, entry->file_info().size()); | 502 EXPECT_EQ(cache_file_size, entry->file_info().size()); |
502 } | 503 } |
503 | 504 |
504 } // namespace file_system | 505 } // namespace file_system |
505 } // namespace drive | 506 } // namespace drive |
OLD | NEW |