OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/url_request/sdch_dictionary_fetcher.h" | 5 #include "net/url_request/sdch_dictionary_fetcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 fetcher()->Schedule(dictionary_url_1); | 180 fetcher()->Schedule(dictionary_url_1); |
181 fetcher()->Schedule(dictionary_url_2); | 181 fetcher()->Schedule(dictionary_url_2); |
182 fetcher()->Schedule(dictionary_url_3); | 182 fetcher()->Schedule(dictionary_url_3); |
183 fetcher()->Cancel(); | 183 fetcher()->Cancel(); |
184 base::RunLoop().RunUntilIdle(); | 184 base::RunLoop().RunUntilIdle(); |
185 | 185 |
186 // Synchronous execution may have resulted in a single job being scheduled. | 186 // Synchronous execution may have resulted in a single job being scheduled. |
187 EXPECT_GE(1, JobsRequested()); | 187 EXPECT_GE(1, JobsRequested()); |
188 } | 188 } |
189 } | 189 |
| 190 } // namespace net |
OLD | NEW |