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

Side by Side Diff: storage/browser/blob/blob_slice_unittest.cc

Issue 2774413002: Move some blob tests next to the files they cover. (Closed)
Patch Set: Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_storage_context.h" 5 #include "storage/browser/blob/blob_storage_context.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "storage/browser/blob/blob_data_builder.h" 10 #include "storage/browser/blob/blob_data_builder.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 EXPECT_EQ(ShareableBlobDataItem::POPULATED_WITHOUT_QUOTA, item->state()); 212 EXPECT_EQ(ShareableBlobDataItem::POPULATED_WITHOUT_QUOTA, item->state());
213 213
214 const DataElement& dest_element = item->item()->data_element(); 214 const DataElement& dest_element = item->item()->data_element();
215 EXPECT_EQ(DataElement::TYPE_FILE, dest_element.type()); 215 EXPECT_EQ(DataElement::TYPE_FILE, dest_element.type());
216 EXPECT_EQ(static_cast<uint64_t>(5), dest_element.length()); 216 EXPECT_EQ(static_cast<uint64_t>(5), dest_element.length());
217 EXPECT_EQ(*item1, *slice.first_source_item); 217 EXPECT_EQ(*item1, *slice.first_source_item);
218 ASSERT_EQ(1u, slice.dest_items.size()); 218 ASSERT_EQ(1u, slice.dest_items.size());
219 } 219 }
220 220
221 } // namespace storage 221 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_memory_controller_unittest.cc ('k') | storage/browser/blob/blob_storage_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698