| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/histogram_samples.h" | 8 #include "base/metrics/histogram_samples.h" |
| 9 #include "base/metrics/statistics_recorder.h" | 9 #include "base/metrics/statistics_recorder.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 11 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | |
| 12 #include "chrome/browser/infobars/infobar_service.h" | 11 #include "chrome/browser/infobars/infobar_service.h" |
| 13 #include "chrome/browser/password_manager/password_store_factory.h" | 12 #include "chrome/browser/password_manager/password_store_factory.h" |
| 14 #include "chrome/browser/password_manager/test_password_store_service.h" | 13 #include "chrome/browser/password_manager/test_password_store_service.h" |
| 15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 17 #include "chrome/common/chrome_version_info.h" | 16 #include "chrome/common/chrome_version_info.h" |
| 18 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
| 19 #include "chrome/test/base/test_switches.h" | 18 #include "chrome/test/base/test_switches.h" |
| 20 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
| 21 #include "components/autofill/core/browser/autofill_test_utils.h" | 20 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 21 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 22 #include "components/infobars/core/infobar.h" | 22 #include "components/infobars/core/infobar.h" |
| 23 #include "components/infobars/core/infobar_manager.h" | 23 #include "components/infobars/core/infobar_manager.h" |
| 24 #include "components/password_manager/core/browser/test_password_store.h" | 24 #include "components/password_manager/core/browser/test_password_store.h" |
| 25 #include "components/password_manager/core/common/password_manager_switches.h" | 25 #include "components/password_manager/core/common/password_manager_switches.h" |
| 26 #include "content/public/browser/render_view_host.h" | 26 #include "content/public/browser/render_view_host.h" |
| 27 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
| 28 #include "content/public/browser/web_contents_observer.h" | 28 #include "content/public/browser/web_contents_observer.h" |
| 29 #include "content/public/test/browser_test_utils.h" | 29 #include "content/public/test/browser_test_utils.h" |
| 30 #include "content/public/test/test_utils.h" | 30 #include "content/public/test/test_utils.h" |
| 31 #include "net/test/embedded_test_server/embedded_test_server.h" | 31 #include "net/test/embedded_test_server/embedded_test_server.h" |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 ASSERT_TRUE(content::ExecuteScript(RenderViewHost(), fill)); | 712 ASSERT_TRUE(content::ExecuteScript(RenderViewHost(), fill)); |
| 713 | 713 |
| 714 NavigationObserver observer(WebContents()); | 714 NavigationObserver observer(WebContents()); |
| 715 GURL url = embedded_test_server()->GetURL("/password/password_form.html"); | 715 GURL url = embedded_test_server()->GetURL("/password/password_form.html"); |
| 716 chrome::NavigateParams params(browser(), url, | 716 chrome::NavigateParams params(browser(), url, |
| 717 content::PAGE_TRANSITION_RELOAD); | 717 content::PAGE_TRANSITION_RELOAD); |
| 718 ui_test_utils::NavigateToURL(¶ms); | 718 ui_test_utils::NavigateToURL(¶ms); |
| 719 observer.Wait(); | 719 observer.Wait(); |
| 720 EXPECT_FALSE(observer.infobar_shown()); | 720 EXPECT_FALSE(observer.infobar_shown()); |
| 721 } | 721 } |
| OLD | NEW |