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

Unified Diff: content/browser/blob_storage/blob_data_builder_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/blob_storage/blob_flattener_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/blob_storage/blob_data_builder_unittest.cc
diff --git a/content/browser/blob_storage/blob_data_builder_unittest.cc b/content/browser/blob_storage/blob_data_builder_unittest.cc
deleted file mode 100644
index f1fc6a9a6a6b1be00c2a5445f9219ae53b5d0e57..0000000000000000000000000000000000000000
--- a/content/browser/blob_storage/blob_data_builder_unittest.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "storage/browser/blob/blob_data_builder.h"
-
-#include <string>
-
-#include "base/logging.h"
-#include "storage/common/data_element.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace storage {
-
-TEST(BlobDataBuilderTest, TestFutureFiles) {
- const std::string kId = "id";
-
- DataElement element;
- element.SetToFilePath(BlobDataBuilder::GetFutureFileItemPath(0));
- EXPECT_TRUE(BlobDataBuilder::IsFutureFileItem(element));
- EXPECT_EQ(0ull, BlobDataBuilder::GetFutureFileID(element));
-
- BlobDataBuilder builder(kId);
- builder.AppendFutureFile(0, 10, 0);
- EXPECT_TRUE(
- BlobDataBuilder::IsFutureFileItem(builder.items_[0]->data_element()));
- EXPECT_EQ(0ull, BlobDataBuilder::GetFutureFileID(
- builder.items_[0]->data_element()));
-}
-
-} // namespace storage
« no previous file with comments | « no previous file | content/browser/blob_storage/blob_flattener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698