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

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

Issue 2562733003: Remove duplicated user_prefs::TestingPrefServiceSyncable (Closed)
Patch Set: Fixed usage from .mm files Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/proxy_config_service_impl_unittest.cc » ('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 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
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h" 17 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h"
18 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 18 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
19 #include "chrome/browser/chromeos/drive/file_system_util.h" 19 #include "chrome/browser/chromeos/drive/file_system_util.h"
20 #include "chrome/browser/prefs/browser_prefs.h" 20 #include "chrome/browser/prefs/browser_prefs.h"
21 #include "chrome/browser/profiles/profile_manager.h" 21 #include "chrome/browser/profiles/profile_manager.h"
22 #include "chrome/test/base/testing_browser_process.h" 22 #include "chrome/test/base/testing_browser_process.h"
23 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
24 #include "chrome/test/base/testing_profile_manager.h" 24 #include "chrome/test/base/testing_profile_manager.h"
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"
31 #include "components/sync_preferences/pref_service_syncable.h" 30 #include "components/sync_preferences/pref_service_syncable.h"
32 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
33 #include "content/public/common/url_constants.h" 32 #include "content/public/common/url_constants.h"
34 #include "content/public/test/test_browser_thread_bundle.h" 33 #include "content/public/test/test_browser_thread_bundle.h"
35 #include "content/public/test/test_file_system_options.h" 34 #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"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 "Range", "Wrong Range Header Value", false /* overwrite */); 409 "Range", "Wrong Range Header Value", false /* overwrite */);
411 request->Start(); 410 request->Start();
412 411
413 base::RunLoop().Run(); 412 base::RunLoop().Run();
414 413
415 EXPECT_EQ(net::ERR_REQUEST_RANGE_NOT_SATISFIABLE, 414 EXPECT_EQ(net::ERR_REQUEST_RANGE_NOT_SATISFIABLE,
416 test_delegate_->request_status()); 415 test_delegate_->request_status());
417 } 416 }
418 417
419 } // namespace chromeos 418 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/proxy_config_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698