1 // Copyright 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 "chrome/browser/ui/toolbar/test_toolbar_model.h"
7 #include "grit/theme_resources.h"
9 TestToolbarModel::TestToolbarModel()
11 should_replace_url_(false),
12 security_level_(NONE),
13 icon_(IDR_LOCATION_BAR_HTTP),
14 should_display_url_(true) {}
16 TestToolbarModel::~TestToolbarModel() {}
18 string16 TestToolbarModel::GetText(bool allow_search_term_replacement) const {
22 string16 TestToolbarModel::GetCorpusNameForMobile() const {
26 GURL TestToolbarModel::GetURL() const {
30 bool TestToolbarModel::WouldPerformSearchTermReplacement(
31 bool ignore_editing) const {
32 return should_replace_url_;
35 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel(
36 bool ignore_editing) const {
37 return security_level_;
40 int TestToolbarModel::GetIcon() const {
44 string16 TestToolbarModel::GetEVCertName() const {
48 bool TestToolbarModel::ShouldDisplayURL() const {
49 return should_display_url_;