OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
8 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in
ternals_ui.h" | 8 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in
ternals_ui.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 10 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 password_manager::switches::kEnablePasswordManagerInternalsUI); | 55 password_manager::switches::kEnablePasswordManagerInternalsUI); |
56 } | 56 } |
57 | 57 |
58 content::WebContents* | 58 content::WebContents* |
59 PasswordManagerInternalsWebUIBrowserTest::GetWebContents() { | 59 PasswordManagerInternalsWebUIBrowserTest::GetWebContents() { |
60 return browser()->tab_strip_model()->GetActiveWebContents(); | 60 return browser()->tab_strip_model()->GetActiveWebContents(); |
61 } | 61 } |
62 | 62 |
63 IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsWebUIBrowserTest, | 63 IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsWebUIBrowserTest, |
64 LogSavePasswordProgress) { | 64 LogSavePasswordProgress) { |
65 controller()->LogSavePasswordProgress("text test text"); | 65 controller()->LogSavePasswordProgress("<script> text for testing"); |
66 ASSERT_TRUE(RunJavascriptTest("testLogText")); | 66 ASSERT_TRUE(RunJavascriptTest("testLogText")); |
67 } | 67 } |
OLD | NEW |