blob: 65c5cd8841357201a77205c1e80a10b4b2ea91a5 [file] [log] [blame]
Daniel Cheng999698bd2017-03-22 04:56:371// Copyright 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/public/test/test_runner_support.h"
6
Lukasz Anforowicz6b4a0122017-11-09 20:41:387#include "content/common/unique_name_helper.h"
Daniel Cheng999698bd2017-03-22 04:56:378#include "content/renderer/render_frame_impl.h"
9#include "third_party/WebKit/public/web/WebLocalFrame.h"
10
11namespace content {
12
Lukasz Anforowicz6b4a0122017-11-09 20:41:3813std::string GetFrameNameForLayoutTests(blink::WebLocalFrame* frame) {
14 std::string unique_name = RenderFrameImpl::FromWebFrame(frame)->unique_name();
15 return UniqueNameHelper::ExtractStableNameForTesting(unique_name);
Daniel Cheng999698bd2017-03-22 04:56:3716}
17
18} // namespace content