|
|
@ -735,6 +735,7 @@ TEST(EnvPosixTest, PosixRandomRWFileTest) { |
|
|
|
|
|
|
|
|
|
|
|
class TestLogger : public Logger { |
|
|
|
class TestLogger : public Logger { |
|
|
|
public: |
|
|
|
public: |
|
|
|
|
|
|
|
using Logger::Logv; |
|
|
|
virtual void Logv(const char* format, va_list ap) override { |
|
|
|
virtual void Logv(const char* format, va_list ap) override { |
|
|
|
log_count++; |
|
|
|
log_count++; |
|
|
|
|
|
|
|
|
|
|
@ -808,6 +809,7 @@ TEST(EnvPosixTest, LogBufferTest) { |
|
|
|
class TestLogger2 : public Logger { |
|
|
|
class TestLogger2 : public Logger { |
|
|
|
public: |
|
|
|
public: |
|
|
|
explicit TestLogger2(size_t max_log_size) : max_log_size_(max_log_size) {} |
|
|
|
explicit TestLogger2(size_t max_log_size) : max_log_size_(max_log_size) {} |
|
|
|
|
|
|
|
using Logger::Logv; |
|
|
|
virtual void Logv(const char* format, va_list ap) override { |
|
|
|
virtual void Logv(const char* format, va_list ap) override { |
|
|
|
char new_format[2000]; |
|
|
|
char new_format[2000]; |
|
|
|
std::fill_n(new_format, sizeof(new_format), '2'); |
|
|
|
std::fill_n(new_format, sizeof(new_format), '2'); |
|
|
|