Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1447)

Unified Diff: content/test/test_runner_support.cc

Issue 2714943004: Move unique name generation and tracking into //content. (Closed)
Patch Set: Rebase again. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/BUILD.gn ('k') | extensions/renderer/script_context_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/test/BUILD.gn ('k') | extensions/renderer/script_context_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698