Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
|
mmenke
2017/06/05 18:31:34
nit: -(c)
satorux1
2017/06/06 08:52:37
done - but this file is gone.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_NET_ERRORPAGE_TEST_UTIL_H_ | |
| 6 #define CHROME_BROWSER_NET_ERRORPAGE_TEST_UTIL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "chrome/browser/ui/browser.h" | |
| 12 | |
| 13 namespace errorpage_test_util { | |
| 14 | |
| 15 // Returns true if |text| is displayed on the page |browser| is currently | |
| 16 // displaying. Uses "innerText", so will miss hidden text, and whitespace | |
| 17 // space handling may be weird. | |
|
mmenke
2017/06/05 18:31:34
It actually doesn't use "innerText" (Know you just
satorux1
2017/06/06 08:52:37
Updated the comment in errorpage_browsertest.cc :)
| |
| 18 bool WARN_UNUSED_RESULT IsDisplayingText(Browser* browser, | |
| 19 const std::string& text); | |
| 20 | |
| 21 } // errorpage_test_util | |
| 22 | |
| 23 #endif // CHROME_BROWSER_NET_ERRORPAGE_TEST_UTIL_H_ | |
| OLD | NEW |