From 169413971735bcda8be12ec8e953e8069ad01db4 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 7 Dec 2020 22:57:17 -0800 Subject: [PATCH] Change type of batch_size_received in simple_log_processor_test to (#425) Change type of batch_size_received to size_t --- sdk/test/logs/simple_log_processor_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/test/logs/simple_log_processor_test.cc b/sdk/test/logs/simple_log_processor_test.cc index 834cba7ad8..80c83183d3 100644 --- a/sdk/test/logs/simple_log_processor_test.cc +++ b/sdk/test/logs/simple_log_processor_test.cc @@ -18,7 +18,7 @@ class TestExporter final : public LogExporter public: TestExporter(int *shutdown_counter, std::shared_ptr> logs_received, - int *batch_size_received) + size_t *batch_size_received) : shutdown_counter_(shutdown_counter), logs_received_(logs_received), batch_size_received(batch_size_received) @@ -46,7 +46,7 @@ class TestExporter final : public LogExporter private: int *shutdown_counter_; std::shared_ptr> logs_received_; - int *batch_size_received; + size_t *batch_size_received; }; // Tests whether the simple processor successfully creates a batch of size 1 @@ -55,7 +55,7 @@ TEST(SimpleLogProcessorTest, SendReceivedLogsToExporter) { // Create a simple processor with a TestExporter attached std::shared_ptr> logs_received(new std::vector); - int batch_size_received = 0; + size_t batch_size_received = 0; std::unique_ptr exporter( new TestExporter(nullptr, logs_received, &batch_size_received));