LCOV - code coverage report
Current view: top level - source/server - resource_monitor_config_impl.h (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 1 7 14.3 %
Date: 2024-01-05 06:35:25 Functions: 1 5 20.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include "envoy/server/resource_monitor_config.h"
       4             : 
       5             : namespace Envoy {
       6             : namespace Server {
       7             : namespace Configuration {
       8             : 
       9             : class ResourceMonitorFactoryContextImpl : public ResourceMonitorFactoryContext {
      10             : public:
      11             :   ResourceMonitorFactoryContextImpl(Event::Dispatcher& dispatcher, const Server::Options& options,
      12             :                                     Api::Api& api,
      13             :                                     ProtobufMessage::ValidationVisitor& validation_visitor)
      14             :       : dispatcher_(dispatcher), options_(options), api_(api),
      15         248 :         validation_visitor_(validation_visitor) {}
      16             : 
      17           0 :   Event::Dispatcher& mainThreadDispatcher() override { return dispatcher_; }
      18             : 
      19           0 :   const Server::Options& options() override { return options_; }
      20             : 
      21           0 :   Api::Api& api() override { return api_; }
      22             : 
      23           0 :   ProtobufMessage::ValidationVisitor& messageValidationVisitor() override {
      24           0 :     return validation_visitor_;
      25           0 :   }
      26             : 
      27             : private:
      28             :   Event::Dispatcher& dispatcher_;
      29             :   const Server::Options& options_;
      30             :   Api::Api& api_;
      31             :   ProtobufMessage::ValidationVisitor& validation_visitor_;
      32             : };
      33             : 
      34             : } // namespace Configuration
      35             : } // namespace Server
      36             : } // namespace Envoy

Generated by: LCOV version 1.15