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

Unified Diff: storage/browser/test/mock_blob_url_request_context.cc

Issue 2821303003: Move a browser-side File API unittest next to the file it covers. (Closed)
Patch Set: Created 3 years, 8 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 | « storage/browser/test/mock_blob_url_request_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/test/mock_blob_url_request_context.cc
diff --git a/content/public/test/mock_blob_url_request_context.cc b/storage/browser/test/mock_blob_url_request_context.cc
similarity index 78%
rename from content/public/test/mock_blob_url_request_context.cc
rename to storage/browser/test/mock_blob_url_request_context.cc
index 515c1f3c280706b734d3e6663a9b5babb5c59a9f..0e4f67dfa7402e1ae69bff599bbad8c3728cb961 100644
--- a/content/public/test/mock_blob_url_request_context.cc
+++ b/storage/browser/test/mock_blob_url_request_context.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/public/test/mock_blob_url_request_context.h"
+#include "storage/browser/test/mock_blob_url_request_context.h"
#include "base/memory/ptr_util.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -28,12 +28,10 @@ MockBlobURLRequestContext::~MockBlobURLRequestContext() {
AssertNoURLRequests();
}
-ScopedTextBlob::ScopedTextBlob(
- const MockBlobURLRequestContext& request_context,
- const std::string& blob_id,
- const std::string& data)
- : blob_id_(blob_id),
- context_(request_context.blob_storage_context()) {
+ScopedTextBlob::ScopedTextBlob(const MockBlobURLRequestContext& request_context,
+ const std::string& blob_id,
+ const std::string& data)
+ : blob_id_(blob_id), context_(request_context.blob_storage_context()) {
DCHECK(context_);
storage::BlobDataBuilder blob_builder(blob_id_);
if (!data.empty())
@@ -41,8 +39,7 @@ ScopedTextBlob::ScopedTextBlob(
handle_ = context_->AddFinishedBlob(&blob_builder);
}
-ScopedTextBlob::~ScopedTextBlob() {
-}
+ScopedTextBlob::~ScopedTextBlob() {}
std::unique_ptr<storage::BlobDataHandle> ScopedTextBlob::GetBlobDataHandle() {
return context_->GetBlobDataFromUUID(blob_id_);
« no previous file with comments | « storage/browser/test/mock_blob_url_request_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698