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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 2652343003: Replace source pointer in cc::CopyOutputRequest with a base::UnguessableToken (Closed)
Patch Set: c Created 3 years, 11 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/browser/renderer_host/render_widget_host_view_aura_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
index 29a8e8cb9b823008fc1125a88769eef996d92e02..e73a50220737469d8d7c8be0aef4a63af3f19e34 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
@@ -269,7 +269,10 @@ class FakeSurfaceObserver : public cc::SurfaceObserver {
class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
public:
FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback)
- : size_(size), callback_(callback), should_capture_(true) {}
+ : size_(size),
+ callback_(callback),
+ should_capture_(true),
+ source_id_for_copy_request_(base::UnguessableToken::Create()) {}
bool ShouldCaptureFrame(const gfx::Rect& damage_rect,
base::TimeTicks present_time,
@@ -285,6 +288,10 @@ class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
return true;
}
+ base::UnguessableToken GetSourceIdForCopyRequest() override {
Fady Samuel 2017/01/26 21:22:42 const base::UnguessableToken&
Saman Sami 2017/01/26 21:47:27 Done.
+ return source_id_for_copy_request_;
+ }
+
base::TimeTicks last_present_time() const { return last_present_time_; }
void set_should_capture(bool should_capture) {
@@ -303,6 +310,7 @@ class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
base::Callback<void(bool)> callback_;
base::TimeTicks last_present_time_;
bool should_capture_;
+ base::UnguessableToken source_id_for_copy_request_;
};
class FakeWindowEventDispatcher : public aura::WindowEventDispatcher {

Powered by Google App Engine
This is Rietveld 408576698