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

Unified Diff: components/drive/service/drive_api_service_unittest.cc

Issue 2728323002: Network traffic annotation added to drive/base_requests. (Closed)
Patch Set: Annoatation udpated. 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 | « components/drive/service/drive_api_service.cc ('k') | google_apis/drive/base_requests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/service/drive_api_service_unittest.cc
diff --git a/components/drive/service/drive_api_service_unittest.cc b/components/drive/service/drive_api_service_unittest.cc
index a3496715a103713c4e49394f903ae4afba50cb9d..70143b406a825a134173b392e6fdeb1e276ce8f0 100644
--- a/components/drive/service/drive_api_service_unittest.cc
+++ b/components/drive/service/drive_api_service_unittest.cc
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/drive/service/drive_api_service.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/test/test_simple_task_runner.h"
-#include "components/drive/service/drive_api_service.h"
#include "google_apis/drive/dummy_auth_service.h"
#include "google_apis/drive/request_sender.h"
#include "google_apis/drive/test_util.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -43,9 +44,9 @@ TEST(DriveAPIServiceTest, BatchRequestConfiguratorWithAuthFailure) {
new base::TestSimpleTaskRunner();
scoped_refptr<net::TestURLRequestContextGetter> request_context_getter =
new net::TestURLRequestContextGetter(task_runner.get());
- google_apis::RequestSender sender(new TestAuthService,
- request_context_getter.get(),
- task_runner.get(), kTestUserAgent);
+ google_apis::RequestSender sender(
+ new TestAuthService, request_context_getter.get(), task_runner.get(),
+ kTestUserAgent, TRAFFIC_ANNOTATION_FOR_TESTS);
std::unique_ptr<google_apis::drive::BatchUploadRequest> request =
base::MakeUnique<google_apis::drive::BatchUploadRequest>(&sender,
url_generator);
« no previous file with comments | « components/drive/service/drive_api_service.cc ('k') | google_apis/drive/base_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698