Extension syncing: Introduce a NeedsSync pref
[chromium-blink-merge.git] / components / rappor / test_log_uploader.h
bloba8dcc76a658fa9c0fd9be8a2ee62aa0c6da48921
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_
8 #include <string>
10 #include "base/macros.h"
11 #include "components/rappor/log_uploader_interface.h"
13 namespace rappor {
15 class TestLogUploader : public LogUploaderInterface {
16 public:
17 TestLogUploader();
18 ~TestLogUploader() override;
20 // LogUploaderInterface:
21 void Start() override;
22 void Stop() override;
23 void QueueLog(const std::string& log) override;
25 // Get if the uploader is running.
26 bool is_running() { return is_running_; }
28 private:
29 // True if Start was called since the last Stop.
30 bool is_running_;
32 DISALLOW_COPY_AND_ASSIGN(TestLogUploader);
35 } // namespace rappor
37 #endif // COMPONENTS_RAPPOR_LOG_UPLOADER_INTERFACE_H_