OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/platform_thread.h" | 7 #include "base/platform_thread.h" |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "base/thread.h" | 9 #include "base/thread.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 QuitDelegate delegate; | 1495 QuitDelegate delegate; |
1496 message_loop.WatchFileDescriptor(fd, | 1496 message_loop.WatchFileDescriptor(fd, |
1497 true, MessageLoopForIO::WATCH_WRITE, &controller, &delegate); | 1497 true, MessageLoopForIO::WATCH_WRITE, &controller, &delegate); |
1498 controller.StopWatchingFileDescriptor(); | 1498 controller.StopWatchingFileDescriptor(); |
1499 } | 1499 } |
1500 } | 1500 } |
1501 close(pipefds[0]); | 1501 close(pipefds[0]); |
1502 close(pipefds[1]); | 1502 close(pipefds[1]); |
1503 } | 1503 } |
1504 | 1504 |
1505 #endif // defined(OS_LINUX) | 1505 #endif // defined(OS_POSIX) |
OLD | NEW |