| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 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 "chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.h" |
| 6 |
| 7 namespace chrome { |
| 8 namespace testing { |
| 9 |
| 10 MockToolbarModel::MockToolbarModel() |
| 11 : ToolbarModel(), |
| 12 input_in_progress_(false), |
| 13 would_replace_search_url_with_search_terms_(false) { |
| 14 } |
| 15 |
| 16 MockToolbarModel::~MockToolbarModel() { |
| 17 } |
| 18 |
| 19 string16 MockToolbarModel::GetText( |
| 20 bool display_search_urls_as_search_terms) const { |
| 21 return string16(); |
| 22 } |
| 23 |
| 24 GURL MockToolbarModel::GetURL() const { |
| 25 return GURL(); |
| 26 } |
| 27 |
| 28 bool MockToolbarModel::WouldReplaceSearchURLWithSearchTerms() const { |
| 29 return would_replace_search_url_with_search_terms_; |
| 30 } |
| 31 |
| 32 MockToolbarModel::SecurityLevel MockToolbarModel::GetSecurityLevel() const { |
| 33 return NONE; |
| 34 } |
| 35 |
| 36 int MockToolbarModel::GetIcon() const { |
| 37 return 0; |
| 38 } |
| 39 |
| 40 string16 MockToolbarModel::GetEVCertName() const { |
| 41 return string16(); |
| 42 } |
| 43 |
| 44 bool MockToolbarModel::ShouldDisplayURL() const { |
| 45 return false; |
| 46 } |
| 47 |
| 48 void MockToolbarModel::SetInputInProgress(bool value) { |
| 49 input_in_progress_ = value; |
| 50 } |
| 51 |
| 52 bool MockToolbarModel::GetInputInProgress() const { |
| 53 return input_in_progress_; |
| 54 } |
| 55 |
| 56 } // namespace testing |
| 57 } // namespace chrome |
| OLD | NEW |