Fix Windows counter types

This commit is contained in:
Sebastian Messmer 2018-09-03 07:43:06 -07:00
parent 2d757b028d
commit f5040d2d5a
5 changed files with 10 additions and 10 deletions

View File

@ -3,9 +3,9 @@
using ::testing::WithParamInterface;
using ::testing::Values;
class FuseStatfsReturnBavailTest: public FuseStatfsReturnTest<fsblkcnt_t>, public WithParamInterface<fsblkcnt_t> {
class FuseStatfsReturnBavailTest: public FuseStatfsReturnTest<fsblkcnt64_t>, public WithParamInterface<fsblkcnt64_t> {
private:
void set(struct ::statvfs *stat, fsblkcnt_t value) override {
void set(struct ::statvfs *stat, fsblkcnt64_t value) override {
stat->f_bavail = value;
}
};

View File

@ -3,9 +3,9 @@
using ::testing::WithParamInterface;
using ::testing::Values;
class FuseStatfsReturnBfreeTest: public FuseStatfsReturnTest<fsblkcnt_t>, public WithParamInterface<fsblkcnt_t> {
class FuseStatfsReturnBfreeTest: public FuseStatfsReturnTest<fsblkcnt64_t>, public WithParamInterface<fsblkcnt64_t> {
private:
void set(struct ::statvfs *stat, fsblkcnt_t value) override {
void set(struct ::statvfs *stat, fsblkcnt64_t value) override {
stat->f_bfree = value;
}
};

View File

@ -3,9 +3,9 @@
using ::testing::WithParamInterface;
using ::testing::Values;
class FuseStatfsReturnBlocksTest: public FuseStatfsReturnTest<fsblkcnt_t>, public WithParamInterface<fsblkcnt_t> {
class FuseStatfsReturnBlocksTest: public FuseStatfsReturnTest<fsblkcnt64_t>, public WithParamInterface<fsblkcnt64_t> {
private:
void set(struct ::statvfs *stat, fsblkcnt_t value) override {
void set(struct ::statvfs *stat, fsblkcnt64_t value) override {
stat->f_blocks = value;
}
};

View File

@ -3,9 +3,9 @@
using ::testing::WithParamInterface;
using ::testing::Values;
class FuseStatfsReturnFfreeTest: public FuseStatfsReturnTest<fsfilcnt_t>, public WithParamInterface<fsfilcnt_t> {
class FuseStatfsReturnFfreeTest: public FuseStatfsReturnTest<fsfilcnt64_t>, public WithParamInterface<fsfilcnt64_t> {
private:
void set(struct ::statvfs *stat, fsfilcnt_t value) override {
void set(struct ::statvfs *stat, fsfilcnt64_t value) override {
stat->f_ffree = value;
}
};

View File

@ -3,9 +3,9 @@
using ::testing::WithParamInterface;
using ::testing::Values;
class FuseStatfsReturnFilesTest: public FuseStatfsReturnTest<fsfilcnt_t>, public WithParamInterface<fsfilcnt_t> {
class FuseStatfsReturnFilesTest: public FuseStatfsReturnTest<fsfilcnt64_t>, public WithParamInterface<fsfilcnt64_t> {
private:
void set(struct ::statvfs *stat, fsfilcnt_t value) override {
void set(struct ::statvfs *stat, fsfilcnt64_t value) override {
stat->f_files = value;
}
};