| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) | 5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) |
| 6 // rather than as part of test_shell_tests because they rely on being able | 6 // rather than as part of test_shell_tests because they rely on being able |
| 7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses | 7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses |
| 8 // TYPE_UI, which URLRequest doesn't allow. | 8 // TYPE_UI, which URLRequest doesn't allow. |
| 9 // | 9 // |
| 10 | 10 |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 url_request_context->blob_storage_controller()->RemoveBlob(blob_url); | 384 url_request_context->blob_storage_controller()->RemoveBlob(blob_url); |
| 385 | 385 |
| 386 // Issued Cancel() before receiving any response from Write(), | 386 // Issued Cancel() before receiving any response from Write(), |
| 387 // so nothing should have happen. | 387 // so nothing should have happen. |
| 388 EXPECT_EQ(0, bytes_written()); | 388 EXPECT_EQ(0, bytes_written()); |
| 389 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, status()); | 389 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, status()); |
| 390 EXPECT_EQ(base::PLATFORM_FILE_OK, cancel_status()); | 390 EXPECT_EQ(base::PLATFORM_FILE_OK, cancel_status()); |
| 391 EXPECT_TRUE(complete()); | 391 EXPECT_TRUE(complete()); |
| 392 } | 392 } |
| 393 | 393 |
| 394 // TODO(ericu,dmikurube): Add more tests for Cancel. | 394 // TODO(ericu,dmikurube,kinuko): Add more tests for cancel cases. |
| 395 | 395 |
| 396 } // namespace fileapi | 396 } // namespace fileapi |
| OLD | NEW |