| Index: chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc b/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
|
| index fdfc3dc5883879542afef680fa560701b501e4b4..728359653fb3db226b277c635c37cbdd3e0fbddb 100644
|
| --- a/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
|
| +++ b/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
|
| @@ -6,14 +6,16 @@
|
| #include "chrome/browser/extensions/api/image_writer_private/test_utils.h"
|
| #include "chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h"
|
| #include "chrome/test/base/testing_profile.h"
|
| -#include "content/test/net/url_request_prepackaged_interceptor.h"
|
| +#include "content/public/browser/browser_thread.h"
|
| #include "net/url_request/url_fetcher.h"
|
| +#include "net/url_request/url_request_prepackaged_interceptor.h"
|
|
|
| namespace extensions {
|
| namespace image_writer {
|
|
|
| namespace {
|
|
|
| +using content::BrowserThread;
|
| using testing::_;
|
| using testing::AnyNumber;
|
| using testing::AtLeast;
|
| @@ -22,7 +24,7 @@ using testing::Lt;
|
|
|
| const char kTestImageUrl[] = "http://localhost/test/image.zip";
|
|
|
| -typedef content::URLLocalHostRequestPrepackagedInterceptor GetInterceptor;
|
| +typedef net::URLLocalHostRequestPrepackagedInterceptor GetInterceptor;
|
|
|
| // This class gives us a generic Operation with the ability to set or inspect
|
| // the current path to the image file.
|
| @@ -76,7 +78,10 @@ class ImageWriterWriteFromUrlOperationTest : public ImageWriterUnitTestBase {
|
|
|
| // Turn on interception and set up our dummy file.
|
| net::URLFetcher::SetEnableInterceptionForTests(true);
|
| - get_interceptor_.reset(new GetInterceptor());
|
| + get_interceptor_.reset(new GetInterceptor(
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
|
| + BrowserThread::GetBlockingPool()->GetTaskRunnerWithShutdownBehavior(
|
| + base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)));
|
| get_interceptor_->SetResponse(GURL(kTestImageUrl),
|
| test_utils_.GetImagePath());
|
| }
|
|
|