10Duke Scale C++ Client
Loading...
Searching...
No Matches
FakeBrowser.h
1#ifndef TENDUKE_TEST_FAKES_FAKEBROWSER_H
2#define TENDUKE_TEST_FAKES_FAKEBROWSER_H
3
4#include "osa/BrowserIntegration.h"
5#include "./FakeHttpServer.h"
6
7#include <chrono>
8#include <memory>
9#include <vector>
10
11namespace tenduke { namespace test { namespace fakes {
12
14{
15public:
17 std::string redirUrl,
18 const std::shared_ptr<tenduke::test::fakes::FakeHttpServer> &httpServer,
19 const std::chrono::milliseconds &simulatedUserInteractionTime = std::chrono::milliseconds(30)
20 );
21
22public:
23 void openUrl(const std::string &url) const override;
24
25public:
26 std::chrono::milliseconds simulatedUserInteractionTime;
27 const std::string redirUrl;
28 const std::shared_ptr<std::vector<std::string>> openedUrls;
29 const std::shared_ptr<tenduke::test::fakes::FakeHttpServer> httpServer;
30};
31
32}}}
33
34#endif //TENDUKE_TEST_FAKES_FAKEBROWSER_H
Service for opening URL in a browser.
Definition BrowserIntegration.h:11
Definition FakeBrowser.h:14
void openUrl(const std::string &url) const override
Opens URL in a browser.
Definition FakeBrowser.cpp:6
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7