summaryrefslogtreecommitdiffstats
path: root/src/disk_interface_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-05 17:24:30 (GMT)
committerEvan Martin <martine@danga.com>2012-01-05 17:24:30 (GMT)
commit499d3e9ea1776e5f59ef722bc82188f46fce3a9d (patch)
tree5447d244788b4bf50290de14b8d07d020360dd1a /src/disk_interface_test.cc
parentdc3ffcdd4c840a697cdbc71f2c0121908977af9a (diff)
downloadNinja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.zip
Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.tar.gz
Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.tar.bz2
convert all time_t to a new TimeStamp type
Diffstat (limited to 'src/disk_interface_test.cc')
-rw-r--r--src/disk_interface_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/disk_interface_test.cc b/src/disk_interface_test.cc
index 3bb8067..c431e75 100644
--- a/src/disk_interface_test.cc
+++ b/src/disk_interface_test.cc
@@ -168,7 +168,7 @@ TEST_F(DiskInterfaceTest, RemoveFile) {
struct StatTest : public StateTestWithBuiltinRules,
public DiskInterface {
// DiskInterface implementation.
- virtual int Stat(const string& path);
+ virtual TimeStamp Stat(const string& path);
virtual bool MakeDir(const string& path) {
assert(false);
return false;
@@ -182,13 +182,13 @@ struct StatTest : public StateTestWithBuiltinRules,
return 0;
}
- map<string, time_t> mtimes_;
+ map<string, TimeStamp> mtimes_;
vector<string> stats_;
};
-int StatTest::Stat(const string& path) {
+TimeStamp StatTest::Stat(const string& path) {
stats_.push_back(path);
- map<string, time_t>::iterator i = mtimes_.find(path);
+ map<string, TimeStamp>::iterator i = mtimes_.find(path);
if (i == mtimes_.end())
return 0; // File not found.
return i->second;