Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: content/browser/download/mock_download_file.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 13
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "content/browser/download/download_file.h" 16 #include "content/browser/download/download_file.h"
17 #include "content/public/browser/download_manager.h" 17 #include "content/public/browser/download_manager.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace content { 21 namespace content {
22 struct DownloadCreateInfo;
23 22
24 class MockDownloadFile : public DownloadFile { 23 class MockDownloadFile : public DownloadFile {
25 public: 24 public:
26 MockDownloadFile(); 25 MockDownloadFile();
27 virtual ~MockDownloadFile(); 26 virtual ~MockDownloadFile();
28 27
29 // DownloadFile functions. 28 // DownloadFile functions.
30 MOCK_METHOD1(Initialize, void(const InitializeCallback&)); 29 MOCK_METHOD1(Initialize, void(const InitializeCallback&));
31 MOCK_METHOD2(AppendDataToFile, DownloadInterruptReason( 30 MOCK_METHOD2(AppendDataToFile, DownloadInterruptReason(
32 const char* data, size_t data_len)); 31 const char* data, size_t data_len));
(...skipping 18 matching lines...) Expand all
51 MOCK_METHOD1(GetHash, bool(std::string* hash)); 50 MOCK_METHOD1(GetHash, bool(std::string* hash));
52 MOCK_METHOD0(SendUpdate, void()); 51 MOCK_METHOD0(SendUpdate, void());
53 MOCK_CONST_METHOD0(Id, int()); 52 MOCK_CONST_METHOD0(Id, int());
54 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); 53 MOCK_METHOD0(GetDownloadManager, DownloadManager*());
55 MOCK_CONST_METHOD0(DebugString, std::string()); 54 MOCK_CONST_METHOD0(DebugString, std::string());
56 }; 55 };
57 56
58 } // namespace content 57 } // namespace content
59 58
60 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ 59 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_
OLDNEW
« no previous file with comments | « content/browser/download/drag_download_file.h ('k') | content/browser/fileapi/browser_file_system_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698