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

Unified Diff: base/message_loop_unittest.cc

Issue 7232002: net doesn't depend on libevent directly now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: No need to include message_pump_libevent.h Created 9 years, 6 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 | base/message_pump_libevent_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop_unittest.cc
===================================================================
--- base/message_loop_unittest.cc (revision 89948)
+++ base/message_loop_unittest.cc (working copy)
@@ -20,9 +20,6 @@
#include "base/message_pump_win.h"
#include "base/win/scoped_handle.h"
#endif
-#if defined(OS_POSIX)
-#include "base/message_pump_libevent.h"
-#endif
using base::PlatformThread;
using base::Thread;
@@ -1560,7 +1557,7 @@
namespace {
-class QuitDelegate : public base::MessagePumpLibevent::Watcher {
+class QuitDelegate : public MessageLoopForIO::Watcher {
public:
virtual void OnFileCanWriteWithoutBlocking(int fd) {
MessageLoop::current()->Quit();
@@ -1583,7 +1580,7 @@
int fd = pipefds[1];
{
// Arrange for controller to live longer than message loop.
- base::MessagePumpLibevent::FileDescriptorWatcher controller;
+ MessageLoopForIO::FileDescriptorWatcher controller;
{
MessageLoopForIO message_loop;
@@ -1610,7 +1607,7 @@
// Arrange for message loop to live longer than controller.
MessageLoopForIO message_loop;
{
- base::MessagePumpLibevent::FileDescriptorWatcher controller;
+ MessageLoopForIO::FileDescriptorWatcher controller;
QuitDelegate delegate;
message_loop.WatchFileDescriptor(fd,
« no previous file with comments | « no previous file | base/message_pump_libevent_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698