1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_RAPPOR_TEST_LOG_UPLOADER_H_
6 #define COMPONENTS_RAPPOR_TEST_LOG_UPLOADER_H_
10 #include "base/macros.h"
11 #include "components/rappor/log_uploader_interface.h"
15 class TestLogUploader
: public LogUploaderInterface
{
18 ~TestLogUploader() override
;
20 // LogUploaderInterface:
21 void Start() override
;
23 void QueueLog(const std::string
& log
) override
;
25 // Get if the uploader is running.
26 bool is_running() { return is_running_
; }
29 // True if Start was called since the last Stop.
32 DISALLOW_COPY_AND_ASSIGN(TestLogUploader
);
37 #endif // COMPONENTS_RAPPOR_LOG_UPLOADER_INTERFACE_H_