#include <stdbool.h>
#include <string.h>
#include <gtest/gtest.h>
#include <grpc/support/log.h>
#include "src/core/lib/gprpp/global_config.h"
#include "test/core/util/test_config.h"
Go to the source code of this file.
◆ test_log_function_reached
      
        
          | #define test_log_function_reached | ( |  | SEVERITY | ) |  | 
      
 
Value:
  log_func_reached = false;                     \
  gpr_log_message(SEVERITY, "hello 1 2 3");     \
  log_func_reached = false;                     \
  gpr_log(SEVERITY, "hello %d %d %d", 1, 2, 3); \
  gpr_set_log_function(nullptr);
 
Definition at line 45 of file log_test.cc.
 
 
◆ test_log_function_unreached
      
        
          | #define test_log_function_unreached | ( |  | SEVERITY | ) |  | 
      
 
Value:
  gpr_log_message(SEVERITY, "hello 1 2 3");     \
  gpr_log(SEVERITY, "hello %d %d %d", 1, 2, 3); \
  gpr_set_log_function(nullptr);
 
Definition at line 55 of file log_test.cc.
 
 
◆ main()
      
        
          | int main | ( | int | argc, | 
        
          |  |  | char ** | argv | 
        
          |  | ) |  |  | 
      
 
 
◆ TEST() [1/2]
◆ TEST() [2/2]
      
        
          | TEST | ( | LogTest | , | 
        
          |  |  | LogVerbosity |  | 
        
          |  | ) |  |  | 
      
 
 
◆ test_callback()
◆ test_should_log()
◆ test_should_not_log()
◆ log_func_reached