OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 #include "content/public/test/mock_navigation_handle.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 MockNavigationHandle::MockNavigationHandle(GURL url) : url_(url) { |
| 10 ON_CALL(*this, GetURL()).WillByDefault( |
| 11 testing::ReturnRef(url_)); |
| 12 ON_CALL(*this, IsInMainFrame()).WillByDefault( |
| 13 testing::Return(false)); |
| 14 ON_CALL(*this, IsSamePage()).WillByDefault( |
| 15 testing::Return(false)); |
| 16 ON_CALL(*this, HasCommittedDocument()).WillByDefault( |
| 17 testing::Return(false)); |
| 18 } |
| 19 |
| 20 MockNavigationHandle::~MockNavigationHandle() {} |
| 21 |
| 22 } // namespace content |
OLD | NEW |