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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months 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>
9 #include <stdint.h>
10
8 #include <map> 11 #include <map>
9 #include <string> 12 #include <string>
10 13
11 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
13 #include "content/browser/download/download_file.h" 16 #include "content/browser/download/download_file.h"
14 #include "content/public/browser/download_manager.h" 17 #include "content/public/browser/download_manager.h"
15 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
17 20
(...skipping 15 matching lines...) Expand all
33 void(const base::FilePath& full_path, 36 void(const base::FilePath& full_path,
34 const RenameCompletionCallback& callback)); 37 const RenameCompletionCallback& callback));
35 MOCK_METHOD2(RenameAndAnnotate, 38 MOCK_METHOD2(RenameAndAnnotate,
36 void(const base::FilePath& full_path, 39 void(const base::FilePath& full_path,
37 const RenameCompletionCallback& callback)); 40 const RenameCompletionCallback& callback));
38 MOCK_METHOD0(Detach, void()); 41 MOCK_METHOD0(Detach, void());
39 MOCK_METHOD0(Cancel, void()); 42 MOCK_METHOD0(Cancel, void());
40 MOCK_METHOD0(Finish, void()); 43 MOCK_METHOD0(Finish, void());
41 MOCK_CONST_METHOD0(FullPath, base::FilePath()); 44 MOCK_CONST_METHOD0(FullPath, base::FilePath());
42 MOCK_CONST_METHOD0(InProgress, bool()); 45 MOCK_CONST_METHOD0(InProgress, bool());
43 MOCK_CONST_METHOD0(BytesSoFar, int64()); 46 MOCK_CONST_METHOD0(BytesSoFar, int64_t());
44 MOCK_CONST_METHOD0(CurrentSpeed, int64()); 47 MOCK_CONST_METHOD0(CurrentSpeed, int64_t());
45 MOCK_METHOD1(GetHash, bool(std::string* hash)); 48 MOCK_METHOD1(GetHash, bool(std::string* hash));
46 MOCK_METHOD0(GetHashState, std::string()); 49 MOCK_METHOD0(GetHashState, std::string());
47 MOCK_METHOD0(SendUpdate, void()); 50 MOCK_METHOD0(SendUpdate, void());
48 MOCK_CONST_METHOD0(Id, int()); 51 MOCK_CONST_METHOD0(Id, int());
49 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); 52 MOCK_METHOD0(GetDownloadManager, DownloadManager*());
50 MOCK_CONST_METHOD0(DebugString, std::string()); 53 MOCK_CONST_METHOD0(DebugString, std::string());
51 MOCK_METHOD1(SetClientGuid, void(const std::string&)); 54 MOCK_METHOD1(SetClientGuid, void(const std::string&));
52 }; 55 };
53 56
54 } // namespace content 57 } // namespace content
55 58
56 #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/mhtml_generation_manager.cc ('k') | content/browser/download/rate_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698