#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"
Go to the source code of this file.
Namespaces | |
grpc | |
grpc::testing | |
Functions | |
int | main (int argc, char **argv) |
Definition at line 503 of file load_reporter_test.cc.
CpuStatsProvider::CpuStatsSample initial_cpu_stats_ {2, 20} |
Definition at line 94 of file load_reporter_test.cc.
const std::string kClientIp0 = "00" |
Definition at line 119 of file load_reporter_test.cc.
const std::string kClientIp1 = "0800000001" |
Definition at line 120 of file load_reporter_test.cc.
const std::string kClientIp2 = "3200000000000000000000000000000002" |
Definition at line 121 of file load_reporter_test.cc.
const std::vector<CpuStatsProvider::CpuStatsSample> kCpuStatsSamples |
Definition at line 95 of file load_reporter_test.cc.
const std::string kHostname1 = "kHostname1" |
Definition at line 101 of file load_reporter_test.cc.
const std::string kHostname2 = "kHostname2" |
Definition at line 102 of file load_reporter_test.cc.
const std::string kHostname3 = "kHostname3" |
Definition at line 103 of file load_reporter_test.cc.
const std::string kLbId1 = "kLbId111" |
Definition at line 105 of file load_reporter_test.cc.
const std::string kLbId2 = "kLbId222" |
Definition at line 106 of file load_reporter_test.cc.
const std::string kLbId3 = "kLbId333" |
Definition at line 107 of file load_reporter_test.cc.
const std::string kLbId4 = "kLbId444" |
Definition at line 108 of file load_reporter_test.cc.
const std::string kLbTag1 = "kLbTag1" |
Definition at line 112 of file load_reporter_test.cc.
const std::string kLbTag2 = "kLbTag2" |
Definition at line 113 of file load_reporter_test.cc.
const std::string kLbToken1 = "kLbId111kLbTag1" |
Definition at line 114 of file load_reporter_test.cc.
const std::string kLbToken2 = "kLbId222kLbTag2" |
Definition at line 115 of file load_reporter_test.cc.
const std::string kLoadKey1 = "kLoadKey1" |
Definition at line 109 of file load_reporter_test.cc.
const std::string kLoadKey2 = "kLoadKey2" |
Definition at line 110 of file load_reporter_test.cc.
const std::string kLoadKey3 = "kLoadKey3" |
Definition at line 111 of file load_reporter_test.cc.
const std::string kMetric1 = "kMetric1" |
Definition at line 122 of file load_reporter_test.cc.
const std::string kMetric2 = "kMetric2" |
Definition at line 123 of file load_reporter_test.cc.
Definition at line 183 of file load_reporter_test.cc.
const std::string kUser1 = "kUser1" |
Definition at line 116 of file load_reporter_test.cc.
const std::string kUser2 = "kUser2" |
Definition at line 117 of file load_reporter_test.cc.
const std::string kUser3 = "kUser3" |
Definition at line 118 of file load_reporter_test.cc.
std::unique_ptr<LoadReporter> load_reporter_ |
Definition at line 99 of file load_reporter_test.cc.