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/drive/fake_drive_service.h" | 13 #include "chrome/browser/drive/fake_drive_service.h" |
14 #include "chrome/browser/google_apis/test_util.h" | 14 #include "google_apis/drive/test_util.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace drive { | 17 namespace drive { |
18 namespace file_system { | 18 namespace file_system { |
19 | 19 |
20 class DownloadOperationTest : public OperationTestBase { | 20 class DownloadOperationTest : public OperationTestBase { |
21 protected: | 21 protected: |
22 virtual void SetUp() OVERRIDE { | 22 virtual void SetUp() OVERRIDE { |
23 OperationTestBase::SetUp(); | 23 OperationTestBase::SetUp(); |
24 | 24 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 test_util::RunBlockingPoolTask(); | 460 test_util::RunBlockingPoolTask(); |
461 | 461 |
462 EXPECT_EQ(FILE_ERROR_OK, error); | 462 EXPECT_EQ(FILE_ERROR_OK, error); |
463 // Check that the result of local modification is propagated. | 463 // Check that the result of local modification is propagated. |
464 EXPECT_EQ(static_cast<int64>(dirty_size), init_entry->file_info().size()); | 464 EXPECT_EQ(static_cast<int64>(dirty_size), init_entry->file_info().size()); |
465 EXPECT_EQ(static_cast<int64>(dirty_size), entry->file_info().size()); | 465 EXPECT_EQ(static_cast<int64>(dirty_size), entry->file_info().size()); |
466 } | 466 } |
467 | 467 |
468 } // namespace file_system | 468 } // namespace file_system |
469 } // namespace drive | 469 } // namespace drive |
OLD | NEW |