Daniel Cheng | 999698bd | 2017-03-22 04:56:37 | [diff] [blame] | 1 | // 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 Anforowicz | 6b4a012 | 2017-11-09 20:41:38 | [diff] [blame] | 7 | #include "content/common/unique_name_helper.h" |
Daniel Cheng | 999698bd | 2017-03-22 04:56:37 | [diff] [blame] | 8 | #include "content/renderer/render_frame_impl.h" |
| 9 | #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 10 | |
| 11 | namespace content { |
| 12 | |
Lukasz Anforowicz | 6b4a012 | 2017-11-09 20:41:38 | [diff] [blame] | 13 | std::string GetFrameNameForLayoutTests(blink::WebLocalFrame* frame) { |
| 14 | std::string unique_name = RenderFrameImpl::FromWebFrame(frame)->unique_name(); |
| 15 | return UniqueNameHelper::ExtractStableNameForTesting(unique_name); |
Daniel Cheng | 999698bd | 2017-03-22 04:56:37 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | } // namespace content |