summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-11 15:30:41 +0000
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-11 15:30:41 +0000
commitdaa1057acf92ca198a3f613e5d58b7edfc84d2b7 (patch)
tree568c4c9387ec5471d38287ff413a61a18b9c9d2b /tests
parente31f658c983a137a9559a54bba3f4269ec55d73c (diff)
FileManager: remove support multiple locations for window
Although the fielmanager might have multiple tabs opened, we don't care about knowing them, since we only care of the active one. (bzr r4036.11.75)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_mock_filemanager.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_mock_filemanager.h b/tests/test_mock_filemanager.h
index a6f092cbc..1e541ebfd 100644
--- a/tests/test_mock_filemanager.h
+++ b/tests/test_mock_filemanager.h
@@ -37,16 +37,13 @@ struct MockFileManager : FileManager
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_METHOD1(WindowsForLocation, WindowList(std::string const&));
- MOCK_CONST_METHOD1(LocationsForWindow, std::vector<std::string> const&(ApplicationWindowPtr const&));
+ MOCK_CONST_METHOD1(LocationForWindow, std::string(ApplicationWindowPtr const&));
MockFileManager()
{
using namespace testing;
ON_CALL(*this, WindowsForLocation(_)).WillByDefault(Return(WindowList()));
- ON_CALL(*this, LocationsForWindow(_)).WillByDefault(Invoke([this] (ApplicationWindowPtr const&) { return EMPTY_LOCATIONS; }));
}
-
- const std::vector<std::string> EMPTY_LOCATIONS;
};
}