/*
 * Copyright (C) 2015 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ANDROID_VOLD_BENCHMARK_TASK_H
#define ANDROID_VOLD_BENCHMARK_TASK_H

#include "android/os/IVoldTaskListener.h"
#include "Utils.h"

#include <string>
#include <thread>

namespace android {
namespace vold {

class BenchmarkTask {
public:
    BenchmarkTask(const std::string& path,
            const android::sp<android::os::IVoldTaskListener>& listener);
    virtual ~BenchmarkTask();

    void start();

private:
    std::string mPath;
    android::sp<android::os::IVoldTaskListener> mListener;
    std::thread mThread;

    void run();

    DISALLOW_COPY_AND_ASSIGN(BenchmarkTask);
};

}  // namespace vold
}  // namespace android

#endif
