1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TESTVALUE_H_
6 #define QUICHE_QUIC_PLATFORM_API_QUIC_TESTVALUE_H_
7 
8 #include "absl/strings/string_view.h"
9 #include "net/quic/platform/impl/quic_testvalue_impl.h"
10 
11 namespace quic {
12 
13 // Interface allowing injection of test-specific code in production codepaths.
14 // |label| is an arbitrary value identifying the location, and |var| is a
15 // pointer to the value to be modified.
16 //
17 // Note that this method does nothing in Chromium.
18 template <class T>
AdjustTestValue(absl::string_view label,T * var)19 void AdjustTestValue(absl::string_view label, T* var) {
20   AdjustTestValueImpl(label, var);
21 }
22 
23 }  // namespace quic
24 
25 #endif  // QUICHE_QUIC_PLATFORM_API_QUIC_TESTVALUE_H_
26