tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

metrics_exporter.h (1018B)


      1 /*
      2 *  Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
      3 *
      4 *  Use of this source code is governed by a BSD-style license
      5 *  that can be found in the LICENSE file in the root of the source
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef API_TEST_METRICS_METRICS_EXPORTER_H_
     12 #define API_TEST_METRICS_METRICS_EXPORTER_H_
     13 
     14 #include "api/array_view.h"
     15 #include "api/test/metrics/metric.h"
     16 
     17 namespace webrtc {
     18 namespace test {
     19 
     20 // Exports metrics in the requested format.
     21 class MetricsExporter {
     22 public:
     23  virtual ~MetricsExporter() = default;
     24 
     25  // Exports specified metrics in a format that depends on the implementation.
     26  // Returns true if export succeeded, false otherwise.
     27  virtual bool Export(ArrayView<const Metric> metrics) = 0;
     28 };
     29 
     30 }  // namespace test
     31 }  // namespace webrtc
     32 
     33 #endif  // API_TEST_METRICS_METRICS_EXPORTER_H_