| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void WaitForPasswordStore(); | 129 void WaitForPasswordStore(); |
| 130 // Checks that the current "value" attribute of the HTML element with | 130 // Checks that the current "value" attribute of the HTML element with |
| 131 // |element_id| is equal to |expected_value|. | 131 // |element_id| is equal to |expected_value|. |
| 132 void CheckElementValue(const std::string& element_id, | 132 void CheckElementValue(const std::string& element_id, |
| 133 const std::string& expected_value); | 133 const std::string& expected_value); |
| 134 // Same as above except the element |element_id| is in iframe |iframe_id| | 134 // Same as above except the element |element_id| is in iframe |iframe_id| |
| 135 void CheckElementValue(const std::string& iframe_id, | 135 void CheckElementValue(const std::string& iframe_id, |
| 136 const std::string& element_id, | 136 const std::string& element_id, |
| 137 const std::string& expected_value); | 137 const std::string& expected_value); |
| 138 | 138 |
| 139 // Synchronoulsy adds the given host to the list of valid HSTS hosts. |
| 140 void AddHSTSHost(const std::string& host); |
| 141 |
| 139 // Accessors | 142 // Accessors |
| 140 content::WebContents* WebContents(); | 143 content::WebContents* WebContents(); |
| 141 content::RenderViewHost* RenderViewHost(); | 144 content::RenderViewHost* RenderViewHost(); |
| 142 net::EmbeddedTestServer& https_test_server() { return https_test_server_; } | 145 net::EmbeddedTestServer& https_test_server() { return https_test_server_; } |
| 143 | 146 |
| 144 private: | 147 private: |
| 145 net::EmbeddedTestServer https_test_server_; | 148 net::EmbeddedTestServer https_test_server_; |
| 146 DISALLOW_COPY_AND_ASSIGN(PasswordManagerBrowserTestBase); | 149 DISALLOW_COPY_AND_ASSIGN(PasswordManagerBrowserTestBase); |
| 147 }; | 150 }; |
| 148 | 151 |
| 149 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ | 152 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ |
| OLD | NEW |