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
3 // found in the LICENSE file.
5 #include "content/browser/download/mock_download_file.h"
6 #include "testing/gmock/include/gmock/gmock.h"
9 using ::testing::Return
;
14 void SuccessRun(const DownloadFile::InitializeCallback
& callback
) {
15 callback
.Run(DOWNLOAD_INTERRUPT_REASON_NONE
);
20 MockDownloadFile::MockDownloadFile() {
21 // This is here because |Initialize()| is normally called right after
23 ON_CALL(*this, Initialize(_
))
24 .WillByDefault(::testing::Invoke(SuccessRun
));
27 MockDownloadFile::~MockDownloadFile() {
30 } // namespace content