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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc

Issue 219743002: x11: Move X event handling out of the message-pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r261267 Created 6 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
Index: ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
index 1601007624df74fec32be562bb987b4a960576f2..457ba6b41f78724fd06e2eb09bdc740017348249 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
+++ b/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
@@ -13,6 +13,7 @@
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/dragdrop/file_info.h"
+#include "ui/events/platform/x11/x11_event_source.h"
#include "url/gurl.h"
const char kFileURL[] = "file:///home/user/file.txt";
@@ -24,7 +25,7 @@ namespace ui {
class OSExchangeDataProviderAuraX11Test : public testing::Test {
public:
- OSExchangeDataProviderAuraX11Test() {}
+ OSExchangeDataProviderAuraX11Test() : event_source(gfx::GetXDisplay()) {}
void AddURLList(const std::string& list_contents) {
std::string contents_copy = list_contents;
@@ -38,6 +39,7 @@ class OSExchangeDataProviderAuraX11Test : public testing::Test {
protected:
base::MessageLoopForUI message_loop;
+ X11EventSource event_source;
ui::OSExchangeDataProviderAuraX11 provider;
};
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aurax11.cc ('k') | ui/base/dragdrop/os_exchange_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698