diff options
author | Evan Martin <martine@danga.com> | 2010-10-30 19:43:23 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2010-10-30 19:43:23 (GMT) |
commit | 900bf30f673db46c6d3c3e5f37c08ce89f3ca73c (patch) | |
tree | f16e5bf6ad2d1d784f86e81ebc7c246ebb8f1647 /ninja_test.cc | |
parent | 9904af512ae6aabcecd75165b69d0a6038736e5c (diff) | |
download | Ninja-900bf30f673db46c6d3c3e5f37c08ce89f3ca73c.zip Ninja-900bf30f673db46c6d3c3e5f37c08ce89f3ca73c.tar.gz Ninja-900bf30f673db46c6d3c3e5f37c08ce89f3ca73c.tar.bz2 |
make DiskInterface pure virtual
Diffstat (limited to 'ninja_test.cc')
-rw-r--r-- | ninja_test.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ninja_test.cc b/ninja_test.cc index 7d59be3..e9146ba 100644 --- a/ninja_test.cc +++ b/ninja_test.cc @@ -312,6 +312,14 @@ struct StatTest : public StateTestWithBuiltinRules, public DiskInterface { // DiskInterface implementation. virtual int Stat(const string& path); + virtual bool MakeDir(const string& path) { + assert(false); + return false; + } + virtual string ReadFile(const string& path, string* err) { + assert(false); + return ""; + } map<string, time_t> mtimes_; vector<string> stats_; @@ -413,7 +421,7 @@ public: string start_dir_; string temp_dir_name_; - DiskInterface disk_; + RealDiskInterface disk_; }; TEST_F(DiskInterfaceTest, Stat) { |