OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/child/blob_storage/blob_transport_controller.h" | 5 #include "content/child/blob_storage/blob_transport_controller.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
8 #include "content/child/blob_storage/blob_consolidation.h" | 11 #include "content/child/blob_storage/blob_consolidation.h" |
9 #include "storage/common/blob_storage/blob_item_bytes_request.h" | 12 #include "storage/common/blob_storage/blob_item_bytes_request.h" |
10 #include "storage/common/blob_storage/blob_item_bytes_response.h" | 13 #include "storage/common/blob_storage/blob_item_bytes_response.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
13 | 16 |
14 using storage::BlobItemBytesRequest; | 17 using storage::BlobItemBytesRequest; |
15 using storage::BlobItemBytesResponse; | 18 using storage::BlobItemBytesResponse; |
16 using storage::DataElement; | 19 using storage::DataElement; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 std::vector<storage::BlobItemBytesResponse> output; | 238 std::vector<storage::BlobItemBytesResponse> output; |
236 | 239 |
237 // Error conditions | 240 // Error conditions |
238 EXPECT_EQ(ResponsesStatus::BLOB_NOT_FOUND, | 241 EXPECT_EQ(ResponsesStatus::BLOB_NOT_FOUND, |
239 holder->GetResponses(kBadBlobUUID, requests, &memory_handles, | 242 holder->GetResponses(kBadBlobUUID, requests, &memory_handles, |
240 file_handles, &output)); | 243 file_handles, &output)); |
241 EXPECT_EQ(0u, output.size()); | 244 EXPECT_EQ(0u, output.size()); |
242 } | 245 } |
243 | 246 |
244 } // namespace content | 247 } // namespace content |
OLD | NEW |