xref: /glogg/tests/filewatcherTest.cpp (revision 84af0c9b75fb9369ab66df476dd881cd6d30efcf)
1*84af0c9bSNicolas Bonnefon #include "gmock/gmock.h"
2*84af0c9bSNicolas Bonnefon 
3*84af0c9bSNicolas Bonnefon #include <memory>
4*84af0c9bSNicolas Bonnefon 
5*84af0c9bSNicolas Bonnefon #include "winfilewatcher.h"
6*84af0c9bSNicolas Bonnefon 
7*84af0c9bSNicolas Bonnefon using namespace std;
8*84af0c9bSNicolas Bonnefon 
9*84af0c9bSNicolas Bonnefon class FileWatcherBehaviour: public testing::Test {
10*84af0c9bSNicolas Bonnefon   public:
11*84af0c9bSNicolas Bonnefon     shared_ptr<FileWatcher> file_watcher;
12*84af0c9bSNicolas Bonnefon 
13*84af0c9bSNicolas Bonnefon     void SetUp() override {
14*84af0c9bSNicolas Bonnefon #ifdef _WIN32
15*84af0c9bSNicolas Bonnefon         file_watcher = make_shared<WinFileWatcher>();
16*84af0c9bSNicolas Bonnefon #endif
17*84af0c9bSNicolas Bonnefon     }
18*84af0c9bSNicolas Bonnefon };
19*84af0c9bSNicolas Bonnefon 
20*84af0c9bSNicolas Bonnefon TEST_F( FileWatcherBehaviour, DetectsAnAppendedFile ) {
21*84af0c9bSNicolas Bonnefon     EXPECT_EQ(1, 1);
22*84af0c9bSNicolas Bonnefon }
23