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 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 #include <map> | 9 #include <map> |
11 | 10 |
12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
14 #include "content/browser/download/download_file.h" | 13 #include "content/browser/download/download_file.h" |
15 #include "content/public/browser/download_id.h" | 14 #include "content/public/browser/download_id.h" |
16 #include "content/public/browser/download_manager.h" | 15 #include "content/public/browser/download_manager.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 23 matching lines...) Expand all Loading... |
41 MOCK_METHOD1(GetHash, bool(std::string* hash)); | 40 MOCK_METHOD1(GetHash, bool(std::string* hash)); |
42 MOCK_METHOD0(GetHashState, std::string()); | 41 MOCK_METHOD0(GetHashState, std::string()); |
43 MOCK_METHOD0(CancelDownloadRequest, void()); | 42 MOCK_METHOD0(CancelDownloadRequest, void()); |
44 MOCK_CONST_METHOD0(Id, int()); | 43 MOCK_CONST_METHOD0(Id, int()); |
45 MOCK_METHOD0(GetDownloadManager, content::DownloadManager*()); | 44 MOCK_METHOD0(GetDownloadManager, content::DownloadManager*()); |
46 MOCK_CONST_METHOD0(GlobalId, const content::DownloadId&()); | 45 MOCK_CONST_METHOD0(GlobalId, const content::DownloadId&()); |
47 MOCK_CONST_METHOD0(DebugString, std::string()); | 46 MOCK_CONST_METHOD0(DebugString, std::string()); |
48 }; | 47 }; |
49 | 48 |
50 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ | 49 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ |
OLD | NEW |