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

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

Issue 1934223004: [BlobStorage] Moving all blob files to applicable directories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 reader_->Read(buffer.get(), kDataSize, &bytes_read, 1209 reader_->Read(buffer.get(), kDataSize, &bytes_read,
1210 base::Bind(&SetValue<int>, &async_bytes_read))); 1210 base::Bind(&SetValue<int>, &async_bytes_read)));
1211 EXPECT_EQ(net::OK, reader_->net_error()); 1211 EXPECT_EQ(net::OK, reader_->net_error());
1212 EXPECT_EQ(kDataSize, static_cast<size_t>(bytes_read)); 1212 EXPECT_EQ(kDataSize, static_cast<size_t>(bytes_read));
1213 EXPECT_EQ(0, async_bytes_read); 1213 EXPECT_EQ(0, async_bytes_read);
1214 EXPECT_EQ(kData, std::string(buffer->data(), kDataSize)); 1214 EXPECT_EQ(kData, std::string(buffer->data(), kDataSize));
1215 EXPECT_EQ(net::OK, size_result); 1215 EXPECT_EQ(net::OK, size_result);
1216 } 1216 }
1217 1217
1218 } // namespace storage 1218 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698