OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/dns/serial_worker.h" | 5 #include "net/dns/serial_worker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 WaitForWork(); | 157 WaitForWork(); |
158 RunUntilBreak("OnWorkFinished"); | 158 RunUntilBreak("OnWorkFinished"); |
159 | 159 |
160 // No more tasks should remain. | 160 // No more tasks should remain. |
161 EXPECT_TRUE(message_loop_->IsIdleForTesting()); | 161 EXPECT_TRUE(message_loop_->IsIdleForTesting()); |
162 } | 162 } |
163 | 163 |
164 } // namespace | 164 } // namespace |
165 | 165 |
166 } // namespace net | 166 } // namespace net |
167 | |
OLD | NEW |