Skip to content

Commit

Permalink
Fix test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Predelnik committed Aug 20, 2023
1 parent 60d75ff commit 3a33a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/MockEditorInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ void MockEditorInterface::set_mouse_cursor_pos(const std::optional<POINT> &pos)
m_cursor_pos = pos;
}

std::wstring MockEditorInterface::get_editor_directory() const { return {}; }

MockedDocumentInfo *MockEditorInterface::active_document() {
if (m_documents[m_target_view].empty())
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion test/MockEditorInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ class MockEditorInterface : public EditorInterface {
void set_editor_rect(int left, int top, int right, int bottom);
std::optional<POINT> get_mouse_cursor_pos() const override;
void set_mouse_cursor_pos(const std::optional<POINT> &pos);
std::wstring get_editor_directory() const override;

private:
void set_target_view(int view_index) const override;
int get_target_view() const override;
const MockedDocumentInfo *active_document() const;
MockedDocumentInfo *active_document();
private:
int active_view() const override;

public:
Expand Down

0 comments on commit 3a33a20

Please sign in to comment.