blob: 1e648cff347c65f772c8fb77a55ceee29cc401ee [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEB_APPLICATIONS_TEST_MOCK_FILE_UTILS_WRAPPER_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_TEST_MOCK_FILE_UTILS_WRAPPER_H_
#include "chrome/browser/web_applications/file_utils_wrapper.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace web_app {
class MockFileUtilsWrapper : public FileUtilsWrapper {
public:
MockFileUtilsWrapper();
MOCK_METHOD(int,
WriteFile,
(const base::FilePath& filename, const char* data, int size),
(override));
MOCK_METHOD(bool,
ReadFileToString,
(const base::FilePath& path, std::string* contents),
(override));
MOCK_METHOD(bool,
DeleteFileRecursively,
(const base::FilePath& path),
(override));
protected:
~MockFileUtilsWrapper() override;
};
} // namespace web_app
#endif // CHROME_BROWSER_WEB_APPLICATIONS_TEST_MOCK_FILE_UTILS_WRAPPER_H_