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

Unified Diff: chrome/browser/net/errorpage_test_util.h

Issue 2913733002: Add a browser test for access control for file: scheme (Closed)
Patch Set: Rework the patch per feedback Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698