diff options
author | Evan Martin <martine@danga.com> | 2012-01-05 17:24:30 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-05 17:24:30 (GMT) |
commit | 499d3e9ea1776e5f59ef722bc82188f46fce3a9d (patch) | |
tree | 5447d244788b4bf50290de14b8d07d020360dd1a /src/disk_interface_test.cc | |
parent | dc3ffcdd4c840a697cdbc71f2c0121908977af9a (diff) | |
download | Ninja-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.cc | 8 |
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; |