| OLD | NEW |
| 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/drive/drive_url_request_job.h" | 5 #include "chrome/browser/chromeos/drive/drive_url_request_job.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/task/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h" | 13 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h" |
| 14 #include "chrome/browser/chromeos/drive/fake_file_system.h" | 14 #include "chrome/browser/chromeos/drive/fake_file_system.h" |
| 15 #include "chrome/browser/chromeos/drive/file_system_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 16 #include "chrome/browser/chromeos/drive/test_util.h" | 16 #include "chrome/browser/chromeos/drive/test_util.h" |
| 17 #include "chrome/browser/google_apis/fake_drive_service.h" | 17 #include "chrome/browser/google_apis/fake_drive_service.h" |
| 18 #include "chrome/browser/google_apis/task_util.h" | 18 #include "chrome/browser/google_apis/task_util.h" |
| 19 #include "chrome/browser/google_apis/test_util.h" | 19 #include "chrome/browser/google_apis/test_util.h" |
| 20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 // Start the request, and cancel it immediately after it. | 348 // Start the request, and cancel it immediately after it. |
| 349 request.Start(); | 349 request.Start(); |
| 350 request.Cancel(); | 350 request.Cancel(); |
| 351 | 351 |
| 352 MessageLoop::current()->Run(); | 352 MessageLoop::current()->Run(); |
| 353 | 353 |
| 354 EXPECT_EQ(net::URLRequestStatus::CANCELED, request.status().status()); | 354 EXPECT_EQ(net::URLRequestStatus::CANCELED, request.status().status()); |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace drive | 357 } // namespace drive |
| OLD | NEW |