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

Side by Side Diff: chrome/browser/chromeos/fileapi/external_file_url_request_job_unittest.cc

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/chromeos/fileapi/external_file_url_request_job.h" 5 #include "chrome/browser/chromeos/fileapi/external_file_url_request_job.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "components/drive/chromeos/drive_test_util.h" 25 #include "components/drive/chromeos/drive_test_util.h"
26 #include "components/drive/chromeos/fake_file_system.h" 26 #include "components/drive/chromeos/fake_file_system.h"
27 #include "components/drive/service/fake_drive_service.h" 27 #include "components/drive/service/fake_drive_service.h"
28 #include "components/drive/service/test_util.h" 28 #include "components/drive/service/test_util.h"
29 #include "components/pref_registry/pref_registry_syncable.h" 29 #include "components/pref_registry/pref_registry_syncable.h"
30 #include "components/pref_registry/testing_pref_service_syncable.h" 30 #include "components/pref_registry/testing_pref_service_syncable.h"
31 #include "components/syncable_prefs/pref_service_syncable.h" 31 #include "components/syncable_prefs/pref_service_syncable.h"
32 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
33 #include "content/public/common/url_constants.h" 33 #include "content/public/common/url_constants.h"
34 #include "content/public/test/test_browser_thread_bundle.h" 34 #include "content/public/test/test_browser_thread_bundle.h"
35 #include "content/public/test/test_file_system_options.h"
36 #include "google_apis/drive/test_util.h" 35 #include "google_apis/drive/test_util.h"
37 #include "net/base/request_priority.h" 36 #include "net/base/request_priority.h"
38 #include "net/base/test_completion_callback.h" 37 #include "net/base/test_completion_callback.h"
39 #include "net/http/http_byte_range.h" 38 #include "net/http/http_byte_range.h"
40 #include "net/url_request/redirect_info.h" 39 #include "net/url_request/redirect_info.h"
41 #include "net/url_request/url_request.h" 40 #include "net/url_request/url_request.h"
42 #include "net/url_request/url_request_context.h" 41 #include "net/url_request/url_request_context.h"
43 #include "net/url_request/url_request_test_util.h" 42 #include "net/url_request/url_request_test_util.h"
44 #include "storage/browser/fileapi/external_mount_points.h" 43 #include "storage/browser/fileapi/external_mount_points.h"
45 #include "storage/browser/fileapi/file_system_context.h" 44 #include "storage/browser/fileapi/file_system_context.h"
45 #include "storage/browser/test/test_file_system_options.h"
46 #include "testing/gtest/include/gtest/gtest.h" 46 #include "testing/gtest/include/gtest/gtest.h"
47 #include "url/gurl.h" 47 #include "url/gurl.h"
48 48
49 namespace chromeos { 49 namespace chromeos {
50 namespace { 50 namespace {
51 51
52 // A simple URLRequestJobFactory implementation to create 52 // A simple URLRequestJobFactory implementation to create
53 // ExternalFileURLRequestJob. 53 // ExternalFileURLRequestJob.
54 class TestURLRequestJobFactory : public net::URLRequestJobFactory { 54 class TestURLRequestJobFactory : public net::URLRequestJobFactory {
55 public: 55 public:
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 "Range", "Wrong Range Header Value", false /* overwrite */); 415 "Range", "Wrong Range Header Value", false /* overwrite */);
416 request->Start(); 416 request->Start();
417 417
418 base::RunLoop().Run(); 418 base::RunLoop().Run();
419 419
420 EXPECT_EQ(net::URLRequestStatus::FAILED, request->status().status()); 420 EXPECT_EQ(net::URLRequestStatus::FAILED, request->status().status());
421 EXPECT_EQ(net::ERR_REQUEST_RANGE_NOT_SATISFIABLE, request->status().error()); 421 EXPECT_EQ(net::ERR_REQUEST_RANGE_NOT_SATISFIABLE, request->status().error());
422 } 422 }
423 423
424 } // namespace chromeos 424 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698