mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Initial batch of mocks for host side testing
This commit is contained in:
27
tests/host/common/spiffs_mock.h
Normal file
27
tests/host/common/spiffs_mock.h
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// spiffs_mock.hpp
|
||||
// esp8266-host-tests
|
||||
//
|
||||
// Created by Ivan Grokhotkov on 03/03/16.
|
||||
// Copyright © 2016 esp8266.com. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef spiffs_mock_hpp
|
||||
#define spiffs_mock_hpp
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <vector>
|
||||
#include <FS.h>
|
||||
|
||||
class SpiffsMock {
|
||||
public:
|
||||
SpiffsMock(size_t fs_size, size_t fs_block, size_t fs_page);
|
||||
~SpiffsMock();
|
||||
|
||||
protected:
|
||||
std::vector<uint8_t> m_fs;
|
||||
};
|
||||
|
||||
|
||||
#endif /* spiffs_mock_hpp */
|
Reference in New Issue
Block a user