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

Side by Side Diff: content/public/test/mock_download_item.h

Issue 26938003: Don't prompt to save malicious downloads on exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to only target Malicious (not Maybe-Malicious or Dangerous) files Created 7 years, 2 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 | Annotate | Revision Log
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_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/public/browser/download_interrupt_reasons.h" 10 #include "content/public/browser/download_interrupt_reasons.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 MOCK_METHOD0(GetAutoOpened, bool()); 78 MOCK_METHOD0(GetAutoOpened, bool());
79 MOCK_CONST_METHOD0(GetOpened, bool()); 79 MOCK_CONST_METHOD0(GetOpened, bool());
80 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 80 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
81 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 81 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
82 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); 82 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType));
83 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 83 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
84 MOCK_METHOD1(SetIsTemporary, void(bool)); 84 MOCK_METHOD1(SetIsTemporary, void(bool));
85 MOCK_METHOD1(SetOpened, void(bool)); 85 MOCK_METHOD1(SetOpened, void(bool));
86 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 86 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
87 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 87 MOCK_CONST_METHOD1(DebugString, std::string(bool));
88 MOCK_METHOD1(SetDangerType, void(DownloadDangerType));
88 }; 89 };
89 90
90 } // namespace content 91 } // namespace content
91 92
92 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 93 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698