blob: 2aee6b5625d49ae14482c8fa9aab2815a2e49701 [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 GetFrameNameForWebTests(blink::WebLocalFrame* frame) {
std::string unique_name = RenderFrameImpl::FromWebFrame(frame)->unique_name();
return UniqueNameHelper::ExtractStableNameForTesting(unique_name);
}
} // namespace content