Index: content/test/test_runner_support.cc |
diff --git a/content/test/test_runner_support.cc b/content/test/test_runner_support.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5ee65b0de3c63621182fcdee33241a39bdd5b66 |
--- /dev/null |
+++ b/content/test/test_runner_support.cc |
@@ -0,0 +1,16 @@ |
+// 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/renderer/render_frame_impl.h" |
+#include "third_party/WebKit/public/web/WebLocalFrame.h" |
+ |
+namespace content { |
+ |
+std::string GetUniqueNameForFrame(blink::WebLocalFrame* frame) { |
+ return RenderFrameImpl::FromWebFrame(frame)->unique_name(); |
+} |
+ |
+} // namespace content |