LCOV - code coverage report
Current view: top level - source/extensions/http/stateful_session/cookie - config.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 6 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "source/extensions/http/stateful_session/cookie/config.h"
       2             : 
       3             : #include "source/common/config/utility.h"
       4             : 
       5             : namespace Envoy {
       6             : namespace Extensions {
       7             : namespace Http {
       8             : namespace StatefulSession {
       9             : namespace Cookie {
      10             : 
      11             : Envoy::Http::SessionStateFactorySharedPtr
      12             : CookieBasedSessionStateFactoryConfig::createSessionStateFactory(
      13           0 :     const Protobuf::Message& config, Server::Configuration::GenericFactoryContext& context) {
      14             : 
      15           0 :   const auto& proto_config = MessageUtil::downcastAndValidate<const CookieBasedSessionStateProto&>(
      16           0 :       config, context.messageValidationVisitor());
      17           0 :   return std::make_shared<CookieBasedSessionStateFactory>(
      18           0 :       proto_config, context.serverFactoryContext().mainThreadDispatcher().timeSource());
      19           0 : }
      20             : 
      21             : REGISTER_FACTORY(CookieBasedSessionStateFactoryConfig, Envoy::Http::SessionStateFactoryConfig);
      22             : 
      23             : } // namespace Cookie
      24             : } // namespace StatefulSession
      25             : } // namespace Http
      26             : } // namespace Extensions
      27             : } // namespace Envoy

Generated by: LCOV version 1.15