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

Unified Diff: net/traffic_annotation/network_traffic_annotation_test_helper.h

Issue 2421333002: Protobuf for Traffic Annotation and first use by a URLFetcher. (Closed)
Patch Set: More comments added. Created 3 years, 10 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 | « net/traffic_annotation/network_traffic_annotation.h ('k') | net/url_request/url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/traffic_annotation/network_traffic_annotation_test_helper.h
diff --git a/net/traffic_annotation/network_traffic_annotation_test_helper.h b/net/traffic_annotation/network_traffic_annotation_test_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c58d7aa68226dba2789cc255b2e06ffb740e5e2
--- /dev/null
+++ b/net/traffic_annotation/network_traffic_annotation_test_helper.h
@@ -0,0 +1,15 @@
+// Copyright 2017 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.
+
+#ifndef NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_TEST_HELPER_H_
+#define NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_TEST_HELPER_H_
+
+#include "net/traffic_annotation/network_traffic_annotation.h"
+
+// Macro for unit tests traffic annotations.
+#define TRAFFIC_ANNOTATION_FOR_TESTS \
+ net::DefineNetworkTrafficAnnotation( \
+ "UnitTest", "Traffic annotation for unit, browser and other tests")
+
+#endif // NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_TEST_HELPER_H_
« no previous file with comments | « net/traffic_annotation/network_traffic_annotation.h ('k') | net/url_request/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698