0
Files
src/content/web_test/renderer/blink_test_helpers.h
Lei Zhang d56afb57d1 Delete unused STL includes from content/ headers.
Headers that do not contain "std::" do not need STL includes.

This CL is mechanically generated as follows:

INCL="algorithm|array|list|map|memory|queue|set|string|utility|vector"
git ls-files content | grep '\.h$' | xargs grep -L std:: | \
    xargs grep -El "#include <($INCL)>$" > to_process.txt

INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')"
cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d"
cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D'

Bug: 1200833
Change-Id: I3b8c9af66e23b37c3051760a7c5d4e132f9043a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2841623
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#875908}
2021-04-23 23:13:46 +00:00

38 lines
1.4 KiB
C++

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_WEB_TEST_RENDERER_BLINK_TEST_HELPERS_H_
#define CONTENT_WEB_TEST_RENDERER_BLINK_TEST_HELPERS_H_
#include "base/strings/string_piece.h"
#include "third_party/blink/public/platform/web_url.h"
namespace blink {
namespace web_pref {
struct WebPreferences;
}
} // namespace blink
namespace content {
struct TestPreferences;
// The TestRunner library keeps its settings in a TestPreferences object.
// The content_shell, however, uses WebPreferences. This method exports the
// settings from the TestRunner library which are relevant for web tests.
void ExportWebTestSpecificPreferences(const TestPreferences& from,
blink::web_pref::WebPreferences* to);
// Replaces file:///tmp/web_tests/ with the actual path to the web_tests
// directory, or rewrite URLs generated from absolute path links in
// web-platform-tests.
blink::WebURL RewriteWebTestsURL(base::StringPiece utf8_url, bool is_wpt_mode);
// The same as RewriteWebTestsURL() unless the resource is a path starting
// with /tmp/, then return a file URL to a temporary file.
blink::WebURL RewriteFileURLToLocalResource(base::StringPiece resource);
} // namespace content
#endif // CONTENT_WEB_TEST_RENDERER_BLINK_TEST_HELPERS_H_