OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/offline_pages/offline_page_test_archiver.h" | 5 #include "components/offline_pages/core/offline_page_test_archiver.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 namespace offline_pages { | 13 namespace offline_pages { |
14 | 14 |
15 OfflinePageTestArchiver::OfflinePageTestArchiver( | 15 OfflinePageTestArchiver::OfflinePageTestArchiver( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // This step ensures the file is created and closed immediately. | 53 // This step ensures the file is created and closed immediately. |
54 base::File file(archive_path, base::File::FLAG_OPEN_ALWAYS); | 54 base::File file(archive_path, base::File::FLAG_OPEN_ALWAYS); |
55 } | 55 } |
56 observer_->SetLastPathCreatedByArchiver(archive_path); | 56 observer_->SetLastPathCreatedByArchiver(archive_path); |
57 task_runner_->PostTask( | 57 task_runner_->PostTask( |
58 FROM_HERE, base::Bind(callback_, this, result_, url_, archive_path, | 58 FROM_HERE, base::Bind(callback_, this, result_, url_, archive_path, |
59 result_title_, size_to_report_)); | 59 result_title_, size_to_report_)); |
60 } | 60 } |
61 | 61 |
62 } // namespace offline_pages | 62 } // namespace offline_pages |
OLD | NEW |