Namespaces | Functions
load_reporter_test.cc File Reference
#include <grpc/impl/codegen/port_platform.h>
#include "src/cpp/server/load_reporter/load_reporter.h"
#include <set>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/memory/memory.h"
#include "opencensus/stats/testing/test_utils.h"
#include <grpc/grpc.h>
#include "src/core/ext/filters/load_reporting/registered_opencensus_objects.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/cpp/server/load_reporter/constants.h"
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
Include dependency graph for load_reporter_test.cc:

Go to the source code of this file.

Namespaces

 grpc
 
 grpc::testing
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 503 of file load_reporter_test.cc.

Variable Documentation

◆ initial_cpu_stats_

CpuStatsProvider::CpuStatsSample initial_cpu_stats_ {2, 20}

Definition at line 94 of file load_reporter_test.cc.

◆ kClientIp0

const std::string kClientIp0 = "00"

Definition at line 119 of file load_reporter_test.cc.

◆ kClientIp1

const std::string kClientIp1 = "0800000001"

Definition at line 120 of file load_reporter_test.cc.

◆ kClientIp2

const std::string kClientIp2 = "3200000000000000000000000000000002"

Definition at line 121 of file load_reporter_test.cc.

◆ kCpuStatsSamples

const std::vector<CpuStatsProvider::CpuStatsSample> kCpuStatsSamples
Initial value:
= {
{13, 53}, {64, 96}, {245, 345}, {314, 785},
{874, 1230}, {1236, 2145}, {1864, 2974}}

Definition at line 95 of file load_reporter_test.cc.

◆ kHostname1

const std::string kHostname1 = "kHostname1"

Definition at line 101 of file load_reporter_test.cc.

◆ kHostname2

const std::string kHostname2 = "kHostname2"

Definition at line 102 of file load_reporter_test.cc.

◆ kHostname3

const std::string kHostname3 = "kHostname3"

Definition at line 103 of file load_reporter_test.cc.

◆ kLbId1

const std::string kLbId1 = "kLbId111"

Definition at line 105 of file load_reporter_test.cc.

◆ kLbId2

const std::string kLbId2 = "kLbId222"

Definition at line 106 of file load_reporter_test.cc.

◆ kLbId3

const std::string kLbId3 = "kLbId333"

Definition at line 107 of file load_reporter_test.cc.

◆ kLbId4

const std::string kLbId4 = "kLbId444"

Definition at line 108 of file load_reporter_test.cc.

◆ kLbTag1

const std::string kLbTag1 = "kLbTag1"

Definition at line 112 of file load_reporter_test.cc.

◆ kLbTag2

const std::string kLbTag2 = "kLbTag2"

Definition at line 113 of file load_reporter_test.cc.

◆ kLbToken1

const std::string kLbToken1 = "kLbId111kLbTag1"

Definition at line 114 of file load_reporter_test.cc.

◆ kLbToken2

const std::string kLbToken2 = "kLbId222kLbTag2"

Definition at line 115 of file load_reporter_test.cc.

◆ kLoadKey1

const std::string kLoadKey1 = "kLoadKey1"

Definition at line 109 of file load_reporter_test.cc.

◆ kLoadKey2

const std::string kLoadKey2 = "kLoadKey2"

Definition at line 110 of file load_reporter_test.cc.

◆ kLoadKey3

const std::string kLoadKey3 = "kLoadKey3"

Definition at line 111 of file load_reporter_test.cc.

◆ kMetric1

const std::string kMetric1 = "kMetric1"

Definition at line 122 of file load_reporter_test.cc.

◆ kMetric2

const std::string kMetric2 = "kMetric2"

Definition at line 123 of file load_reporter_test.cc.

◆ kQpsEpsSamples

const std::vector<std::pair<double, double> > kQpsEpsSamples
Initial value:
= {
{546.1, 153.1}, {62.1, 54.1}, {578.1, 154.2}, {978.1, 645.1},
{1132.1, 846.4}, {531.5, 315.4}, {874.1, 324.9}}

Definition at line 183 of file load_reporter_test.cc.

◆ kUser1

const std::string kUser1 = "kUser1"

Definition at line 116 of file load_reporter_test.cc.

◆ kUser2

const std::string kUser2 = "kUser2"

Definition at line 117 of file load_reporter_test.cc.

◆ kUser3

const std::string kUser3 = "kUser3"

Definition at line 118 of file load_reporter_test.cc.

◆ load_reporter_

std::unique_ptr<LoadReporter> load_reporter_

Definition at line 99 of file load_reporter_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:22