| 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 "chrome/browser/autofill/autofill_popup_view.h" | 5 #include "chrome/browser/autofill/autofill_popup_view.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 EXPECT_CALL(autofill_popup_view, Hide()); | 64 EXPECT_CALL(autofill_popup_view, Hide()); |
| 65 | 65 |
| 66 ui_test_utils::WindowedNotificationObserver observer( | 66 ui_test_utils::WindowedNotificationObserver observer( |
| 67 content::NOTIFICATION_NAV_ENTRY_COMMITTED, | 67 content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
| 68 content::Source<content::NavigationController>( | 68 content::Source<content::NavigationController>( |
| 69 &(web_contents->GetController()))); | 69 &(web_contents->GetController()))); |
| 70 browser()->OpenURL(content::OpenURLParams( | 70 browser()->OpenURL(content::OpenURLParams( |
| 71 GURL(chrome::kAboutBlankURL), content::Referrer(), | 71 GURL(chrome::kAboutBlankURL), content::Referrer(), |
| 72 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 72 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
| 73 browser()->OpenURL(content::OpenURLParams( | 73 browser()->OpenURL(content::OpenURLParams( |
| 74 GURL(chrome::kAboutCrashURL), content::Referrer(), | 74 GURL(chrome::kChromeUICrashURL), content::Referrer(), |
| 75 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 75 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
| 76 observer.Wait(); | 76 observer.Wait(); |
| 77 | 77 |
| 78 // The mock verifies that the call was made. | 78 // The mock verifies that the call was made. |
| 79 } | 79 } |
| OLD | NEW |