| 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 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_ | 
 |   6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_ | 
 |   7  | 
 |   8 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 
 |   9 #include "base/compiler_specific.h" | 
 |  10  | 
 |  11 // Override the toolbar model to allow |GetInputInProgress| and | 
 |  12 // |WouldReplaceSearchURLWithSearchTerms| to be customized. | 
 |  13 class MockToolbarModel : public ToolbarModel { | 
 |  14  public: | 
 |  15   MockToolbarModel(); | 
 |  16   virtual ~MockToolbarModel(); | 
 |  17  | 
 |  18   virtual string16 GetText( | 
 |  19       bool display_search_urls_as_search_terms) const OVERRIDE; | 
 |  20   virtual GURL GetURL() const OVERRIDE; | 
 |  21   virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE; | 
 |  22   virtual SecurityLevel GetSecurityLevel() const OVERRIDE; | 
 |  23   virtual int GetIcon() const OVERRIDE; | 
 |  24   virtual string16 GetEVCertName() const OVERRIDE; | 
 |  25   virtual bool ShouldDisplayURL() const OVERRIDE; | 
 |  26   virtual void SetInputInProgress(bool value) OVERRIDE; | 
 |  27   virtual bool GetInputInProgress() const OVERRIDE; | 
 |  28  | 
 |  29   void set_would_replace_search_url_with_search_terms(bool value) { | 
 |  30     would_replace_search_url_with_search_terms_ = value; | 
 |  31   } | 
 |  32  | 
 |  33  private: | 
 |  34   bool input_in_progress_; | 
 |  35   bool would_replace_search_url_with_search_terms_; | 
 |  36 }; | 
 |  37  | 
 |  38 #endif  // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_ | 
| OLD | NEW |