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_ |