MXS-2446 Provide access to used urls
Makes it possible to later verify that results are for the urls one expects them to be.
This commit is contained in:
@ -172,6 +172,8 @@ public:
|
||||
virtual long wait_no_more_than() const = 0;
|
||||
|
||||
virtual const std::vector<Result>& results() const = 0;
|
||||
|
||||
virtual const std::vector<std::string>& urls() const = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -258,6 +260,16 @@ public:
|
||||
return m_sImp->results();
|
||||
}
|
||||
|
||||
/**
|
||||
* The URLs the async operation was invoked with.
|
||||
*
|
||||
* @return Vector of urls.
|
||||
*/
|
||||
const std::vector<std::string>& urls() const
|
||||
{
|
||||
return m_sImp->urls();
|
||||
}
|
||||
|
||||
public:
|
||||
Async(const std::shared_ptr<Imp>& sImp)
|
||||
: m_sImp(sImp)
|
||||
|
||||
Reference in New Issue
Block a user