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_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.h" | 9 #include "base/time/time.h" |
10 #include "content/public/browser/download_id.h" | 10 #include "content/public/browser/download_id.h" |
11 #include "content/public/browser/download_interrupt_reasons.h" | 11 #include "content/public/browser/download_interrupt_reasons.h" |
12 #include "content/public/browser/download_item.h" | 12 #include "content/public/browser/download_item.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class MockDownloadItem : public DownloadItem { | 19 class MockDownloadItem : public DownloadItem { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); | 84 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); |
85 MOCK_METHOD1(SetIsTemporary, void(bool)); | 85 MOCK_METHOD1(SetIsTemporary, void(bool)); |
86 MOCK_METHOD1(SetOpened, void(bool)); | 86 MOCK_METHOD1(SetOpened, void(bool)); |
87 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 87 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
88 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 88 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
92 | 92 |
93 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 93 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |