aboutsummaryrefslogtreecommitdiff
path: root/test/mock-allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/mock-allocator.h')
-rw-r--r--test/mock-allocator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mock-allocator.h b/test/mock-allocator.h
index 1dd2dadb..513a62e8 100644
--- a/test/mock-allocator.h
+++ b/test/mock-allocator.h
@@ -16,8 +16,8 @@ template <typename T> class mock_allocator {
mock_allocator() {}
mock_allocator(const mock_allocator&) {}
typedef T value_type;
- MOCK_METHOD1_T(allocate, T*(std::size_t n));
- MOCK_METHOD2_T(deallocate, void(T* p, std::size_t n));
+ MOCK_METHOD1_T(allocate, T*(size_t n));
+ MOCK_METHOD2_T(deallocate, void(T* p, size_t n));
};
template <typename Allocator> class allocator_ref {
@@ -51,10 +51,10 @@ template <typename Allocator> class allocator_ref {
public:
Allocator* get() const { return alloc_; }
- value_type* allocate(std::size_t n) {
+ value_type* allocate(size_t n) {
return std::allocator_traits<Allocator>::allocate(*alloc_, n);
}
- void deallocate(value_type* p, std::size_t n) { alloc_->deallocate(p, n); }
+ void deallocate(value_type* p, size_t n) { alloc_->deallocate(p, n); }
};
#endif // FMT_MOCK_ALLOCATOR_H_