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

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

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
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 "chrome/browser/net/url_fetcher.h" 7 #include "chrome/browser/net/url_fetcher.h"
8 #include "chrome/browser/net/url_fetcher_protect.h" 8 #include "chrome/browser/net/url_fetcher_protect.h"
9 #include "chrome/common/chrome_plugin_lib.h" 9 #include "chrome/common/chrome_plugin_lib.h"
10 #include "net/base/ssl_test_util.h" 10 #include "net/base/ssl_test_util.h"
11 #include "net/http/http_response_headers.h"
11 #include "net/url_request/url_request_unittest.h" 12 #include "net/url_request/url_request_unittest.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 using base::Time; 15 using base::Time;
15 using base::TimeDelta; 16 using base::TimeDelta;
16 17
17 namespace { 18 namespace {
18 19
19 const wchar_t kDocRoot[] = L"chrome/test/data"; 20 const wchar_t kDocRoot[] = L"chrome/test/data";
20 21
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // (main) thread will do the IO, and when the fetch is complete it will 464 // (main) thread will do the IO, and when the fetch is complete it will
464 // terminate the main thread's message loop; then the other thread's 465 // terminate the main thread's message loop; then the other thread's
465 // message loop will be shut down automatically as the thread goes out of 466 // message loop will be shut down automatically as the thread goes out of
466 // scope. 467 // scope.
467 base::Thread t("URLFetcher test thread"); 468 base::Thread t("URLFetcher test thread");
468 t.Start(); 469 t.Start();
469 t.message_loop()->PostTask(FROM_HERE, new FetcherWrapperTask(this, url)); 470 t.message_loop()->PostTask(FROM_HERE, new FetcherWrapperTask(this, url));
470 471
471 MessageLoop::current()->Run(); 472 MessageLoop::current()->Run();
472 } 473 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698