| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "base/memory/scoped_ptr.h" |    5 #include "base/memory/scoped_ptr.h" | 
|    6 #include "chrome/browser/browser_process.h" |    6 #include "chrome/browser/browser_process.h" | 
|    7 #include "chrome/browser/ui/browser.h" |    7 #include "chrome/browser/ui/browser.h" | 
|    8 #include "chrome/browser/ui/browser_tabstrip.h" |    8 #include "chrome/browser/ui/browser_tabstrip.h" | 
|    9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |    9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
|   10 #include "chrome/common/url_constants.h" |   10 #include "chrome/common/url_constants.h" | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|   32  public: |   32  public: | 
|   33   MockAutofillManagerDelegate() {} |   33   MockAutofillManagerDelegate() {} | 
|   34   virtual ~MockAutofillManagerDelegate() {} |   34   virtual ~MockAutofillManagerDelegate() {} | 
|   35  |   35  | 
|   36   virtual PrefService* GetPrefs() { return &prefs_; } |   36   virtual PrefService* GetPrefs() { return &prefs_; } | 
|   37  |   37  | 
|   38   user_prefs::PrefRegistrySyncable* GetPrefRegistry() { |   38   user_prefs::PrefRegistrySyncable* GetPrefRegistry() { | 
|   39     return prefs_.registry(); |   39     return prefs_.registry(); | 
|   40   } |   40   } | 
|   41  |   41  | 
|   42   MOCK_METHOD6(ShowAutofillPopup, |   42   MOCK_METHOD7(ShowAutofillPopup, | 
|   43                void(const gfx::RectF& element_bounds, |   43                void(const gfx::RectF& element_bounds, | 
 |   44                     base::i18n::TextDirection text_direction, | 
|   44                     const std::vector<string16>& values, |   45                     const std::vector<string16>& values, | 
|   45                     const std::vector<string16>& labels, |   46                     const std::vector<string16>& labels, | 
|   46                     const std::vector<string16>& icons, |   47                     const std::vector<string16>& icons, | 
|   47                     const std::vector<int>& identifiers, |   48                     const std::vector<int>& identifiers, | 
|   48                     base::WeakPtr<AutofillPopupDelegate> delegate)); |   49                     base::WeakPtr<AutofillPopupDelegate> delegate)); | 
|   49  |   50  | 
|   50   MOCK_METHOD0(HideAutofillPopup, void()); |   51   MOCK_METHOD0(HideAutofillPopup, void()); | 
|   51  |   52  | 
|   52  private: |   53  private: | 
|   53   TestingPrefServiceSyncable prefs_; |   54   TestingPrefServiceSyncable prefs_; | 
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  153   browser()->OpenURL(content::OpenURLParams( |  154   browser()->OpenURL(content::OpenURLParams( | 
|  154       GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), |  155       GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), | 
|  155       CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |  156       CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 
|  156   browser()->OpenURL(content::OpenURLParams( |  157   browser()->OpenURL(content::OpenURLParams( | 
|  157       GURL(chrome::kChromeUIAboutURL), content::Referrer(), |  158       GURL(chrome::kChromeUIAboutURL), content::Referrer(), | 
|  158       CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |  159       CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 
|  159   observer.Wait(); |  160   observer.Wait(); | 
|  160 } |  161 } | 
|  161  |  162  | 
|  162 }  // namespace autofill |  163 }  // namespace autofill | 
| OLD | NEW |