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_transport_strategy.h" | 5 #include "storage/browser/blob/blob_async_transport_strategy.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <string> | 10 #include <string> |
8 | 11 |
9 #include "base/logging.h" | 12 #include "base/logging.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 | 14 |
12 namespace storage { | 15 namespace storage { |
13 namespace { | 16 namespace { |
14 | 17 |
15 const char kNewUUID[] = "newUUID"; | 18 const char kNewUUID[] = "newUUID"; |
16 const base::FilePath kFuturePopulatingFilePath = base::FilePath::FromUTF8Unsafe( | 19 const base::FilePath kFuturePopulatingFilePath = base::FilePath::FromUTF8Unsafe( |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 strategy.Initialize(100, // max_ipc_memory_size | 449 strategy.Initialize(100, // max_ipc_memory_size |
447 200, // max_shared_memory_size | 450 200, // max_shared_memory_size |
448 400, // max_file_size | 451 400, // max_file_size |
449 5000, // disk_space_left | 452 5000, // disk_space_left |
450 100, // memory_left | 453 100, // memory_left |
451 kNewUUID, infos); | 454 kNewUUID, infos); |
452 EXPECT_EQ(BlobAsyncTransportStrategy::ERROR_INVALID_PARAMS, | 455 EXPECT_EQ(BlobAsyncTransportStrategy::ERROR_INVALID_PARAMS, |
453 strategy.error()); | 456 strategy.error()); |
454 } | 457 } |
455 } // namespace storage | 458 } // namespace storage |
OLD | NEW |