summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-11 15:15:47 +0000
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-11 15:15:47 +0000
commite31f658c983a137a9559a54bba3f4269ec55d73c (patch)
tree17e1c3cb268d0be08165605295d841a59ff58c39 /tests
parent4cff5453eac6cbefd24d49e9bb7b2671bd5d9574 (diff)
FileManager: remove the unneeded methods from FileManager
(bzr r4036.11.74)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_mock_filemanager.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_mock_filemanager.h b/tests/test_mock_filemanager.h
index 2dc8c9ea4..a6f092cbc 100644
--- a/tests/test_mock_filemanager.h
+++ b/tests/test_mock_filemanager.h
@@ -32,23 +32,17 @@ struct MockFileManager : FileManager
typedef testing::NiceMock<MockFileManager> Nice;
MOCK_METHOD2(Open, void(std::string const& uri, uint64_t time));
- MOCK_METHOD2(OpenActiveChild, void(std::string const& uri, uint64_t time));
MOCK_METHOD1(OpenTrash, void(uint64_t time));
MOCK_METHOD1(TrashFile, bool(std::string const& uri));
MOCK_METHOD1(EmptyTrash, void(uint64_t time));
MOCK_METHOD3(CopyFiles, void(std::set<std::string> const& files, std::string const& dest, uint64_t time));
- MOCK_CONST_METHOD0(OpenedLocations, std::vector<std::string> const&());
MOCK_CONST_METHOD1(WindowsForLocation, WindowList(std::string const&));
MOCK_CONST_METHOD1(LocationsForWindow, std::vector<std::string> const&(ApplicationWindowPtr const&));
- MOCK_CONST_METHOD1(IsPrefixOpened, bool(std::string const& uri));
- MOCK_CONST_METHOD0(IsTrashOpened, bool());
- MOCK_CONST_METHOD0(IsDeviceOpened, bool());
MockFileManager()
{
using namespace testing;
ON_CALL(*this, WindowsForLocation(_)).WillByDefault(Return(WindowList()));
- ON_CALL(*this, OpenedLocations()).WillByDefault(Invoke([this] { return EMPTY_LOCATIONS; }));
ON_CALL(*this, LocationsForWindow(_)).WillByDefault(Invoke([this] (ApplicationWindowPtr const&) { return EMPTY_LOCATIONS; }));
}