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

Unified Diff: content/renderer/render_frame_impl_browsertest.cc

Issue 2881593002: Reporting: Plumb into RenderFrame via Mojo (Closed)
Patch Set: rebase Created 3 years, 7 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
Index: content/renderer/render_frame_impl_browsertest.cc
diff --git a/content/renderer/render_frame_impl_browsertest.cc b/content/renderer/render_frame_impl_browsertest.cc
index 56e3d95058bb9faf2d7a44a4c4fad7e574ad4014..e1fbfedb0ec2d21c5acb5cd06664045c7a13a6e0 100644
--- a/content/renderer/render_frame_impl_browsertest.cc
+++ b/content/renderer/render_frame_impl_browsertest.cc
@@ -8,6 +8,7 @@
#include "base/debug/leak_annotations.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/values.h"
#include "build/build_config.h"
#include "content/child/web_url_loader_impl.h"
#include "content/common/frame_messages.h"
@@ -31,6 +32,7 @@
#include "third_party/WebKit/public/web/WebHistoryItem.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebView.h"
+#include "url/gurl.h"
using blink::WebString;
using blink::WebURLRequest;
@@ -547,4 +549,10 @@ TEST_F(RenderFrameImplTest, ShouldUseClientLoFiForRequest) {
}
}
+TEST_F(RenderFrameImplTest, ReportingSmokeTest) {
+ frame()->QueueReport(GURL("https://example.com/path"), "example-group",
+ "example-type",
+ base::MakeUnique<base::DictionaryValue>());
+}
+
} // namespace content
« content/browser/net/reporting_service_proxy.cc ('K') | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698