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

Side by Side Diff: content/browser/blob_storage/blob_url_request_job_unittest.cc

Issue 2709213003: [BlobStorage] Better net error reporting for pre-broken blobs (Closed)
Patch Set: switched to avoid double negative Created 3 years, 10 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
« no previous file with comments | « no previous file | storage/browser/blob/blob_reader.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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <limits> 7 #include <limits>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 kTestDiskCacheStreamIndex, kTestDiskCacheSideStreamIndex); 596 kTestDiskCacheStreamIndex, kTestDiskCacheSideStreamIndex);
597 expected_status_code_ = 200; 597 expected_status_code_ = 200;
598 expected_response_ = kTestDiskCacheData2; 598 expected_response_ = kTestDiskCacheData2;
599 TestRequest("GET", net::HttpRequestHeaders()); 599 TestRequest("GET", net::HttpRequestHeaders());
600 EXPECT_EQ(static_cast<int>(arraysize(kTestDiskCacheData2) - 1), 600 EXPECT_EQ(static_cast<int>(arraysize(kTestDiskCacheData2) - 1),
601 request_->response_headers()->GetContentLength()); 601 request_->response_headers()->GetContentLength());
602 602
603 EXPECT_FALSE(url_request_delegate_.metadata()); 603 EXPECT_FALSE(url_request_delegate_.metadata());
604 } 604 }
605 605
606 TEST_F(BlobURLRequestJobTest, BrokenBlob) {
607 blob_handle_ = blob_context_.AddBrokenBlob(
608 "uuid", "", "", storage::BlobStatus::ERR_INVALID_CONSTRUCTION_ARGUMENTS);
609 TestErrorRequest(500);
610 }
611
606 } // namespace content 612 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | storage/browser/blob/blob_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698