Remove PlatformFile from profile_browsertest
[chromium-blink-merge.git] / content / browser / download / mock_download_file.cc
blob9d883c7a7ebc9a66ecfd4f1aa3e5760414143ec7
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"
8 using ::testing::_;
9 using ::testing::Return;
11 namespace content {
12 namespace {
14 void SuccessRun(const DownloadFile::InitializeCallback& callback) {
15 callback.Run(DOWNLOAD_INTERRUPT_REASON_NONE);
18 } // namespace
20 MockDownloadFile::MockDownloadFile() {
21 // This is here because |Initialize()| is normally called right after
22 // construction.
23 ON_CALL(*this, Initialize(_))
24 .WillByDefault(::testing::Invoke(SuccessRun));
27 MockDownloadFile::~MockDownloadFile() {
30 } // namespace content