replace boost filesystem with std filesystem; upgrade gtest and find it using cmake.

This commit is contained in:
Chunting Gu
2020-02-15 12:04:51 +08:00
parent 7e3da65e73
commit 7e7ab1c1e8
72 changed files with 233 additions and 31551 deletions
+4 -2
View File
@@ -2,6 +2,7 @@
#define WEBCC_COMMON_H_
#include <cassert>
#include <filesystem>
#include <string>
#include <utility>
#include <vector>
@@ -156,7 +157,8 @@ public:
// Construct a file part.
// The file name will be extracted from path.
// The media type, if not provided, will be inferred from file extension.
static FormPartPtr NewFile(const std::string& name, const Path& path,
static FormPartPtr NewFile(const std::string& name,
const std::filesystem::path& path,
const std::string& media_type = "");
// API: SERVER
@@ -227,7 +229,7 @@ private:
std::string name_;
// The path of the file to post.
Path path_;
std::filesystem::path path_;
// The original local file name.
// E.g., "baby.jpg".