mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-27 09:47:48 +01:00
speedup tests, fix includes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// Created by Stepan Usatiuk on 26.04.2023.
|
||||
//
|
||||
|
||||
#include "../includes/Buzhash.h"
|
||||
#include "Buzhash.h"
|
||||
|
||||
Buzhash::Buzhash(uint32_t blockSize) : blockSize(blockSize), history() {}
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Created by Stepan Usatiuk on 26.04.2023.
|
||||
//
|
||||
|
||||
#include "../includes/BuzhashChunker.h"
|
||||
#include "BuzhashChunker.h"
|
||||
|
||||
#include "../../crypto/includes/SHA.h"
|
||||
#include "../../utils/includes/Exception.h"
|
||||
#include "Exception.h"
|
||||
#include "SHA.h"
|
||||
|
||||
BuzhashChunker::BuzhashChunker(std::streambuf *buf, unsigned long long minBytes, unsigned long long maxBytes, unsigned long long mask, uint32_t window) : Chunker(buf, maxBytes), window(window), minBytes(minBytes), mask(mask), buzhash(window) {}
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// Created by Stepan Usatiuk on 15.04.2023.
|
||||
//
|
||||
|
||||
#include "../includes/Chunker.h"
|
||||
#include "Chunker.h"
|
||||
|
||||
#include "../../utils/includes/Exception.h"
|
||||
#include "Exception.h"
|
||||
|
||||
Chunker::Chunker(std::streambuf *buf, unsigned long long maxBytes) : buf(buf), maxBytes(maxBytes) {}
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// Created by Stepan Usatiuk on 30.04.2023.
|
||||
//
|
||||
|
||||
#include "../includes/ChunkerFactory.h"
|
||||
#include "ChunkerFactory.h"
|
||||
|
||||
#include "../../utils/includes/Exception.h"
|
||||
#include "../includes/BuzhashChunker.h"
|
||||
#include "../includes/ConstChunker.h"
|
||||
#include "BuzhashChunker.h"
|
||||
#include "ConstChunker.h"
|
||||
#include "Exception.h"
|
||||
|
||||
std::unique_ptr<Chunker> ChunkerFactory::getChunker(const Config &config, std::streambuf *buf) {
|
||||
if (config.getStr("chunker") == "const") {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Created by Stepan Usatiuk on 15.04.2023.
|
||||
//
|
||||
|
||||
#include "../includes/ConstChunker.h"
|
||||
#include "ConstChunker.h"
|
||||
|
||||
#include "../../crypto/includes/SHA.h"
|
||||
#include "../../utils/includes/Exception.h"
|
||||
#include "Exception.h"
|
||||
#include "SHA.h"
|
||||
|
||||
ConstChunker::ConstChunker(std::streambuf *buf, unsigned long long maxBytes) : Chunker(buf, maxBytes) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user