|
@@ -2,7 +2,6 @@
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
#include "../include/JsonCommander.h"
|
|
|
-#include "../include/base64.h"
|
|
|
#include "FileManagerMock.h"
|
|
|
|
|
|
namespace {
|
|
@@ -885,7 +884,7 @@ TEST(Head, Positive) {
|
|
|
message["file"] = file;
|
|
|
|
|
|
std::vector<char> bytes = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'};
|
|
|
- const std::string bytesAsString = base64::encodeVector(bytes);
|
|
|
+ const std::string bytesAsString = "YWJjZGVmZ2g=";
|
|
|
EXPECT_CALL(fileManager, getBytesFromFile(testing::_, testing::_)).WillOnce(testing::Return(std::make_pair(bytes, FileManager::headError::no_error)));
|
|
|
|
|
|
JsonCommander::Response response = jsonCommander.execute(message);
|