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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "content/public/browser/resource_request_info.h" | 14 #include "content/public/browser/resource_request_info.h" |
15 #include "content/public/test/mock_resource_context.h" | 15 #include "content/public/test/mock_resource_context.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "extensions/browser/extension_protocols.h" | 17 #include "extensions/browser/extension_protocols.h" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 extension->GetResourceURL("test.dat"), | 355 extension->GetResourceURL("test.dat"), |
356 net::DEFAULT_PRIORITY, | 356 net::DEFAULT_PRIORITY, |
357 &test_delegate_, | 357 &test_delegate_, |
358 NULL)); | 358 NULL)); |
359 StartRequest(request.get(), content::RESOURCE_TYPE_MEDIA); | 359 StartRequest(request.get(), content::RESOURCE_TYPE_MEDIA); |
360 EXPECT_EQ(net::URLRequestStatus::FAILED, request->status().status()); | 360 EXPECT_EQ(net::URLRequestStatus::FAILED, request->status().status()); |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 } // namespace extensions | 364 } // namespace extensions |
OLD | NEW |