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