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

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

Issue 10501012: Move mock download test headers from content\test to content\public\test. This way we can enforce t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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_TEST_MOCK_DOWNLOAD_ITEM_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
6 #define CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
7
8 #include <string>
9 #include <vector>
10 7
11 #include "content/public/browser/download_id.h" 8 #include "content/public/browser/download_id.h"
12 #include "content/public/browser/download_interrupt_reasons.h" 9 #include "content/public/browser/download_interrupt_reasons.h"
13 #include "content/public/browser/download_item.h" 10 #include "content/public/browser/download_item.h"
14 #include "content/public/browser/download_persistent_store_info.h" 11 #include "content/public/browser/download_persistent_store_info.h"
15 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
17 14
18 namespace content { 15 namespace content {
19 16
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager)); 116 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager));
120 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 117 MOCK_CONST_METHOD1(DebugString, std::string(bool));
121 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 118 MOCK_METHOD0(MockDownloadOpenForTesting, void());
122 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); 119 MOCK_METHOD1(GetExternalData, ExternalData*(const void*));
123 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); 120 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*));
124 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); 121 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*));
125 }; 122 };
126 123
127 } // namespace content 124 } // namespace content
128 125
129 #endif // CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_ 126 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698