Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: chrome/browser/ui/toolbar/test_toolbar_model.cc

Issue 11040055: Adds a FakeToolbarModel for use in testing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: git try Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 TestToolbarModel::TestToolbarModel()
8 : ToolbarModel(),
9 should_replace_url_(false),
10 security_level_(NONE),
11 icon_(0),
12 should_display_url_(true),
13 input_in_progress_(false) {}
14
15 TestToolbarModel::~TestToolbarModel() {}
16
17 string16 TestToolbarModel::GetText(
18 bool display_search_urls_as_search_terms) const {
19 return text_;
20 }
21
22 GURL TestToolbarModel::GetURL() const {
23 return url_;
24 }
25
26 bool TestToolbarModel::WouldReplaceSearchURLWithSearchTerms() const {
27 return should_replace_url_;
28 }
29
30 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel() const {
31 return security_level_;
32 }
33
34 int TestToolbarModel::GetIcon() const {
35 return icon_;
36 }
37
38 string16 TestToolbarModel::GetEVCertName() const {
39 return ev_cert_name_;
40 }
41
42 bool TestToolbarModel::ShouldDisplayURL() const {
43 return should_display_url_;
44 }
45
46 void TestToolbarModel::SetInputInProgress(bool value) {
47 input_in_progress_ = value;
48 }
49
50 bool TestToolbarModel::GetInputInProgress() const {
51 return input_in_progress_;
52 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/test_toolbar_model.h ('k') | chrome/browser/ui/toolbar/toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698