Clean tests

This commit is contained in:
Victor Zverovich 2018-09-21 07:21:49 -07:00
parent 9d8021f0d6
commit dc69cc45d2
2 changed files with 2 additions and 20 deletions

View File

@ -397,8 +397,7 @@ TEST(ArgTest, CustomArg) {
}
TEST(ArgTest, VisitInvalidArg) {
typedef mock_visitor<fmt::monostate> Visitor;
testing::StrictMock<Visitor> visitor;
testing::StrictMock< mock_visitor<fmt::monostate> > visitor;
EXPECT_CALL(visitor, visit(_));
fmt::basic_format_arg<fmt::format_context> arg;
visit(visitor, arg);
@ -446,7 +445,7 @@ TEST(CoreTest, ConvertToInt) {
EXPECT_TRUE((fmt::convert_to_int<basic_enum, char>::value));
}
enum enum_with_underlying_type : char {TestValue};
enum enum_with_underlying_type : char {};
TEST(CoreTest, IsEnumConvertibleToInt) {
EXPECT_TRUE((fmt::convert_to_int<enum_with_underlying_type, char>::value));

View File

@ -1,17 +0,0 @@
// A folly::StringPiece stub.
#include <cstring>
namespace folly {
class StringPiece {
public:
explicit StringPiece(const char *s) : data_(s), size_(std::strlen(s)) {}
const char* data() const { return "foo"; }
size_t size() const { return 3; }
private:
const char *data_;
size_t size_;
};
}