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

Unified Diff: storage/browser/fileapi/file_writer_delegate_unittest.cc

Issue 2845073002: Test network traffic annotation tag added to fileapi unittests. (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/fileapi/file_system_url_request_job_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/file_writer_delegate_unittest.cc
diff --git a/storage/browser/fileapi/file_writer_delegate_unittest.cc b/storage/browser/fileapi/file_writer_delegate_unittest.cc
index 9733b4b4612949f39ab85eb0965370a018928218..d0524f398fbc9e31e05f530073964a8c3b866aa3 100644
--- a/storage/browser/fileapi/file_writer_delegate_unittest.cc
+++ b/storage/browser/fileapi/file_writer_delegate_unittest.cc
@@ -20,6 +20,7 @@
#include "net/base/io_buffer.h"
#include "net/base/request_priority.h"
#include "net/http/http_response_headers.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_job.h"
@@ -148,8 +149,9 @@ class FileWriterDelegateTest : public PlatformTest {
int64_t allowed_growth) {
file_writer_delegate_.reset(
CreateWriterDelegate(test_file_path, offset, allowed_growth));
- request_ = empty_context_.CreateRequest(
- blob_url, net::DEFAULT_PRIORITY, file_writer_delegate_.get());
+ request_ = empty_context_.CreateRequest(blob_url, net::DEFAULT_PRIORITY,
+ file_writer_delegate_.get(),
+ TRAFFIC_ANNOTATION_FOR_TESTS);
}
// This should be alive until the very end of this instance.
@@ -379,8 +381,9 @@ TEST_F(FileWriterDelegateTest, WriteSuccessWithoutQuotaLimitConcurrent) {
// Credate another FileWriterDelegate for concurrent write.
file_writer_delegate2.reset(
CreateWriterDelegate("test2", 0, std::numeric_limits<int64_t>::max()));
- request2 = empty_context_.CreateRequest(
- kBlobURL2, net::DEFAULT_PRIORITY, file_writer_delegate2.get());
+ request2 = empty_context_.CreateRequest(kBlobURL2, net::DEFAULT_PRIORITY,
+ file_writer_delegate2.get(),
+ TRAFFIC_ANNOTATION_FOR_TESTS);
Result result, result2;
ASSERT_EQ(0, usage());
« no previous file with comments | « storage/browser/fileapi/file_system_url_request_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698