Mir
headless_nested_server_runner.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 or 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored By: Robert Carr <robert.carr@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_FRAMEWORK_HEADLESS_NESTED_SERVER_RUNNER_H_
20 #define MIR_TEST_FRAMEWORK_HEADLESS_NESTED_SERVER_RUNNER_H_
21 
23 #include <atomic>
24 
25 namespace mir_test_framework
26 {
28 {
29  bool wait_for_passthrough_frames(size_t num_frames, std::chrono::milliseconds ms);
30  void note_passthrough();
31 private:
32  std::mutex mutex;
33  std::condition_variable cv;
34  size_t num_passthrough;
35 };
36 
38 {
39 public:
40  HeadlessNestedServerRunner(std::string const& connect_string);
41  std::shared_ptr<PassthroughTracker> const passthrough_tracker;
42 };
43 }
44 
45 #endif /* MIR_TEST_FRAMEWORK_HEADLESS_NESTED_SERVER_RUNNER_H_ */
std::shared_ptr< PassthroughTracker > const passthrough_tracker
Definition: headless_nested_server_runner.h:41
Definition: application.h:29
Definition: async_server_runner.h:35
bool wait_for_passthrough_frames(size_t num_frames, std::chrono::milliseconds ms)
Definition: headless_nested_server_runner.h:27
HeadlessNestedServerRunner(std::string const &connect_string)
Definition: any_surface.h:25
Definition: headless_nested_server_runner.h:37

Copyright © 2012-2018 Canonical Ltd.
Generated on Thu Mar 15 13:06:27 UTC 2018