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

Unified Diff: ui/events/test/events_test_utils_x11.h

Issue 136153006: x11/test: Use a custom-deleter for the stored XEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
« no previous file with comments | « no previous file | ui/events/test/events_test_utils_x11.cc » ('j') | ui/events/test/events_test_utils_x11.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils_x11.h
diff --git a/ui/events/test/events_test_utils_x11.h b/ui/events/test/events_test_utils_x11.h
index 0be6fddcf766232d682dc9b5a9f5b82285902474..737cf886ac829ba908dff2b66e16d80b03d000c7 100644
--- a/ui/events/test/events_test_utils_x11.h
+++ b/ui/events/test/events_test_utils_x11.h
@@ -24,6 +24,10 @@ struct Valuator {
double value;
};
+struct XEventDeleter {
+ void operator()(XEvent* event);
+};
+
class ScopedXI2Event {
public:
ScopedXI2Event();
@@ -73,7 +77,7 @@ class ScopedXI2Event {
void SetUpValuators(const std::vector<Valuator>& valuators);
- scoped_ptr<XEvent> event_;
+ scoped_ptr<XEvent, XEventDeleter> event_;
DISALLOW_COPY_AND_ASSIGN(ScopedXI2Event);
};
« no previous file with comments | « no previous file | ui/events/test/events_test_utils_x11.cc » ('j') | ui/events/test/events_test_utils_x11.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698