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

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

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 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
« no previous file with comments | « chrome/common/geoposition.cc ('k') | chrome/common/net/url_request_intercept_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/message_loop_proxy.h" 5 #include "base/message_loop_proxy.h"
6 #include "base/synchronization/waitable_event.h" 6 #include "base/synchronization/waitable_event.h"
7 #include "base/threading/thread.h" 7 #include "base/threading/thread.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/chrome_plugin_lib.h"
10 #include "chrome/common/net/url_fetcher.h" 9 #include "chrome/common/net/url_fetcher.h"
11 #include "chrome/common/net/url_request_context_getter.h" 10 #include "chrome/common/net/url_request_context_getter.h"
12 #include "net/http/http_response_headers.h" 11 #include "net/http/http_response_headers.h"
13 #include "net/test/test_server.h" 12 #include "net/test/test_server.h"
14 #include "net/url_request/url_request_test_util.h" 13 #include "net/url_request/url_request_test_util.h"
15 #include "net/url_request/url_request_throttler_manager.h" 14 #include "net/url_request/url_request_throttler_manager.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 16
18 #if defined(USE_NSS) 17 #if defined(USE_NSS)
19 #include "net/ocsp/nss_ocsp.h" 18 #include "net/ocsp/nss_ocsp.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() { 88 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() {
90 return io_message_loop_proxy_; 89 return io_message_loop_proxy_;
91 } 90 }
92 91
93 protected: 92 protected:
94 virtual void SetUp() { 93 virtual void SetUp() {
95 testing::Test::SetUp(); 94 testing::Test::SetUp();
96 95
97 io_message_loop_proxy_ = base::MessageLoopProxy::CreateForCurrentThread(); 96 io_message_loop_proxy_ = base::MessageLoopProxy::CreateForCurrentThread();
98 97
99 // Ensure that any plugin operations done by other tests are cleaned up.
100 ChromePluginLib::UnloadAllPlugins();
101 #if defined(USE_NSS) 98 #if defined(USE_NSS)
102 net::EnsureOCSPInit(); 99 net::EnsureOCSPInit();
103 #endif 100 #endif
104 } 101 }
105 102
106 virtual void TearDown() { 103 virtual void TearDown() {
107 #if defined(USE_NSS) 104 #if defined(USE_NSS)
108 net::ShutdownOCSP(); 105 net::ShutdownOCSP();
109 #endif 106 #endif
110 } 107 }
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 FROM_HERE, 735 FROM_HERE,
739 new CurriedTask(new MessageLoop::QuitTask(), MessageLoop::current())); 736 new CurriedTask(new MessageLoop::QuitTask(), MessageLoop::current()));
740 MessageLoop::current()->Run(); 737 MessageLoop::current()->Run();
741 EXPECT_EQ(1, GetNumFetcherCores()); 738 EXPECT_EQ(1, GetNumFetcherCores());
742 URLFetcher::CancelAll(); 739 URLFetcher::CancelAll();
743 EXPECT_EQ(0, GetNumFetcherCores()); 740 EXPECT_EQ(0, GetNumFetcherCores());
744 delete fetcher_; 741 delete fetcher_;
745 } 742 }
746 743
747 } // namespace. 744 } // namespace.
OLDNEW
« no previous file with comments | « chrome/common/geoposition.cc ('k') | chrome/common/net/url_request_intercept_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698