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/autofill/autofill_manager.h" | |
7 #include "chrome/browser/autofill/test_autofill_external_delegate.h" | |
8 #include "chrome/browser/autofill/test_autofill_manager_delegate.h" | |
9 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_tabstrip.h" | 7 #include "chrome/browser/ui/browser_tabstrip.h" |
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
12 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
13 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
14 #include "chrome/test/base/testing_pref_service_syncable.h" | 11 #include "chrome/test/base/testing_pref_service_syncable.h" |
| 12 #include "components/autofill/browser/autofill_manager.h" |
| 13 #include "components/autofill/browser/test_autofill_external_delegate.h" |
| 14 #include "components/autofill/browser/test_autofill_manager_delegate.h" |
15 #include "content/public/browser/navigation_controller.h" | 15 #include "content/public/browser/navigation_controller.h" |
16 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
17 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
18 #include "content/public/browser/page_navigator.h" | 18 #include "content/public/browser/page_navigator.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #include "content/public/common/url_constants.h" | 20 #include "content/public/common/url_constants.h" |
21 #include "content/public/test/test_utils.h" | 21 #include "content/public/test/test_utils.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "ui/gfx/rect.h" | 24 #include "ui/gfx/rect.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 content::Source<content::NavigationController>( | 146 content::Source<content::NavigationController>( |
147 &(web_contents_->GetController()))); | 147 &(web_contents_->GetController()))); |
148 browser()->OpenURL(content::OpenURLParams( | 148 browser()->OpenURL(content::OpenURLParams( |
149 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), | 149 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), |
150 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 150 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
151 browser()->OpenURL(content::OpenURLParams( | 151 browser()->OpenURL(content::OpenURLParams( |
152 GURL(chrome::kChromeUIAboutURL), content::Referrer(), | 152 GURL(chrome::kChromeUIAboutURL), content::Referrer(), |
153 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 153 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
154 observer.Wait(); | 154 observer.Wait(); |
155 } | 155 } |
OLD | NEW |