Chromium Code Reviews| Index: chrome/browser/net/errorpage_test_util.h |
| diff --git a/chrome/browser/net/errorpage_test_util.h b/chrome/browser/net/errorpage_test_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e917210e4407fbfdec3e8910894d0b73af47951a |
| --- /dev/null |
| +++ b/chrome/browser/net/errorpage_test_util.h |
| @@ -0,0 +1,23 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_NET_ERRORPAGE_TEST_UTIL_H_ |
| +#define CHROME_BROWSER_NET_ERRORPAGE_TEST_UTIL_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/compiler_specific.h" |
| +#include "chrome/browser/ui/browser.h" |
| + |
| +namespace errorpage_test_util { |
| + |
| +// Returns true if |text| is displayed on the page |browser| is currently |
| +// displaying. Uses "innerText", so will miss hidden text, and whitespace |
| +// 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 :)
|
| +bool WARN_UNUSED_RESULT IsDisplayingText(Browser* browser, |
| + const std::string& text); |
| + |
| +} // errorpage_test_util |
| + |
| +#endif // CHROME_BROWSER_NET_ERRORPAGE_TEST_UTIL_H_ |