21 #include <unity/scopes/CategorisedResult.h>
22 #include <unity/scopes/SearchReply.h>
23 #include <unity/scopes/Department.h>
25 #include <unity/scopes/testing/MockObject.h>
27 #include <gmock/gmock.h>
49 MOCK_METHOD1(
error,
void(std::exception_ptr));
55 Category::SCPtr(std::string
const&,
60 Category::SCPtr(std::string
const&,
69 MOCK_METHOD1(
push,
bool(experimental::Annotation
const& annotation));
virtual void info(OperationInfo const &op_info)=0
Informs the source of a query that additional information regarding the reply is available.
virtual void register_departments(Department::SCPtr const &parent)=0
Register departments for the current search reply and provide the current department.
std::list< FilterBase::SCPtr > Filters
List of filters.
Definition: FilterBase.h:106
A category renderer template in JSON format.
Definition: CategoryRenderer.h:83
Definition: OnlineAccountClient.h:39
virtual Category::SCPtr lookup_category(std::string const &id)=0
Returns a previously registered category.
virtual void push_surfacing_results_from_cache()=0
Push the results that were produced by the most recent surfacing query.
Allows the results of a search query to be sent to the query source.
Definition: SearchReply.h:45
Top-level namespace for all things Unity-related.
Definition: Version.h:49
virtual bool push(CategorisedResult const &result)=0
Sends a single result to the source of a query.
Parameters of a search query.
Definition: CannedQuery.h:49
Captures state of multiple filters.
Definition: FilterState.h:46
virtual Category::SCPtr register_category(std::string const &id, std::string const &title, std::string const &icon, CategoryRenderer const &renderer_template=CategoryRenderer())=0
Register new category and send it to the source of the query.
virtual void finished()=0
Informs the source of a query that the query results are complete.
Mock for unity::scopes::SearchReply class.
Definition: MockSearchReply.h:41
virtual void error(std::exception_ptr ex)=0
Informs the source of a query that the query was terminated due to an error.
A container for details about something of interest that occurs during the operation of a request...
Definition: OperationInfo.h:42
A result, including the category it belongs to.
Definition: CategorisedResult.h:41