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

Side by Side Diff: chrome/browser/net/url_fetcher_unittest.cc

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 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 unified diff | Download patch
OLDNEW
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/thread.h" 5 #include "base/thread.h"
6 #include "base/time.h" 6 #include "base/time.h"
7 #include "base/timer.h"
7 #include "chrome/browser/net/url_fetcher.h" 8 #include "chrome/browser/net/url_fetcher.h"
8 #include "chrome/browser/net/url_fetcher_protect.h" 9 #include "chrome/browser/net/url_fetcher_protect.h"
9 #include "chrome/common/chrome_plugin_lib.h" 10 #include "chrome/common/chrome_plugin_lib.h"
10 #include "net/base/ssl_test_util.h" 11 #include "net/base/ssl_test_util.h"
11 #include "net/http/http_response_headers.h" 12 #include "net/http/http_response_headers.h"
12 #include "net/url_request/url_request_unittest.h" 13 #include "net/url_request/url_request_unittest.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 using base::Time; 16 using base::Time;
16 using base::TimeDelta; 17 using base::TimeDelta;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 // message loop will be shut down automatically as the thread goes out of 456 // message loop will be shut down automatically as the thread goes out of
456 // scope. 457 // scope.
457 base::Thread t("URLFetcher test thread"); 458 base::Thread t("URLFetcher test thread");
458 t.Start(); 459 t.Start();
459 t.message_loop()->PostTask(FROM_HERE, new FetcherWrapperTask(this, url)); 460 t.message_loop()->PostTask(FROM_HERE, new FetcherWrapperTask(this, url));
460 461
461 MessageLoop::current()->Run(); 462 MessageLoop::current()->Run();
462 } 463 }
463 464
464 } // namespace. 465 } // namespace.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698