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 "storage/browser/blob/blob_async_builder_host.h" | 5 #include "storage/browser/blob/blob_async_builder_host.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/logging.h" | 11 #include "base/logging.h" |
9 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
10 #include "storage/common/blob_storage/blob_storage_constants.h" | 13 #include "storage/common/blob_storage/blob_storage_constants.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
12 | 15 |
13 namespace storage { | 16 namespace storage { |
14 namespace { | 17 namespace { |
15 const std::string kBlobUUID = "blobUUIDYAY"; | 18 const std::string kBlobUUID = "blobUUIDYAY"; |
16 const std::string kFakeBlobUUID = "fakeBlob"; | 19 const std::string kFakeBlobUUID = "fakeBlob"; |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 EXPECT_TRUE(BuildBlobAsync(descriptions, 5010)); | 317 EXPECT_TRUE(BuildBlobAsync(descriptions, 5010)); |
315 response1.request_number = 0; | 318 response1.request_number = 0; |
316 BlobItemBytesResponse response2(0); | 319 BlobItemBytesResponse response2(0); |
317 PopulateBytes(response2.allocate_mutable_data(2), 2); | 320 PopulateBytes(response2.allocate_mutable_data(2), 2); |
318 responses = {response1, response2}; | 321 responses = {response1, response2}; |
319 EXPECT_FALSE(host_.OnMemoryResponses(kBlobUUID, responses)); | 322 EXPECT_FALSE(host_.OnMemoryResponses(kBlobUUID, responses)); |
320 }; | 323 }; |
321 | 324 |
322 } // namespace | 325 } // namespace |
323 } // namespace storage | 326 } // namespace storage |
OLD | NEW |