Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: chrome/browser/ui/webui/password_manager_internals/password_manager_internals_ui_browsertest.cc

Issue 235623002: Password manager internals page: Improve security (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: innerHTML -> innerText Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698