- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / toolbar / test_toolbar_model.cc
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.
4
5 #include "chrome/browser/ui/toolbar/test_toolbar_model.h"
6
7 #include "grit/theme_resources.h"
8
9 TestToolbarModel::TestToolbarModel()
10     : ToolbarModel(),
11       should_replace_url_(false),
12       security_level_(NONE),
13       icon_(IDR_LOCATION_BAR_HTTP),
14       should_display_url_(true) {}
15
16 TestToolbarModel::~TestToolbarModel() {}
17
18 string16 TestToolbarModel::GetText(bool allow_search_term_replacement) const {
19   return text_;
20 }
21
22 string16 TestToolbarModel::GetCorpusNameForMobile() const {
23   return string16();
24 }
25
26 GURL TestToolbarModel::GetURL() const {
27   return url_;
28 }
29
30 bool TestToolbarModel::WouldPerformSearchTermReplacement(
31     bool ignore_editing) const {
32   return should_replace_url_;
33 }
34
35 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel(
36     bool ignore_editing) const {
37   return security_level_;
38 }
39
40 int TestToolbarModel::GetIcon() const {
41   return icon_;
42 }
43
44 string16 TestToolbarModel::GetEVCertName() const {
45   return ev_cert_name_;
46 }
47
48 bool TestToolbarModel::ShouldDisplayURL() const {
49   return should_display_url_;
50 }