blob: 4ceda0996cd5090285ecaf75027fad701749dfb7 [file] [log] [blame]
// Copyright 2017 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.
#include "content/public/test/test_runner_support.h"
#include "content/common/unique_name_helper.h"
#include "content/renderer/render_frame_impl.h"
#include "third_party/blink/public/web/web_local_frame.h"
namespace content {
std::string GetFrameNameForLayoutTests(blink::WebLocalFrame* frame) {
std::string unique_name = RenderFrameImpl::FromWebFrame(frame)->unique_name();
return UniqueNameHelper::ExtractStableNameForTesting(unique_name);
}
} // namespace content