2017-05-11 21:08:20 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
|
|
/*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2020-04-18 03:39:50 -05:00
|
|
|
#pragma once
|
2017-05-11 21:08:20 -05:00
|
|
|
|
2017-09-19 15:16:44 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2017-05-11 21:08:20 -05:00
|
|
|
/// Are we running inside WSD or by ourselves.
|
|
|
|
bool isStandalone();
|
|
|
|
|
|
|
|
/// Run the set of client tests we have
|
|
|
|
bool runClientTests(bool standalone, bool verbose);
|
|
|
|
|
2017-09-19 13:06:46 -05:00
|
|
|
// ---- Abstraction for standalone vs. WSD ----
|
|
|
|
|
2019-09-21 13:39:32 -05:00
|
|
|
/// Get the list of all kit PIDs
|
2017-09-19 15:16:44 -05:00
|
|
|
std::vector<int> getKitPids();
|
|
|
|
|
2019-09-21 13:39:32 -05:00
|
|
|
/// Get the list of spare (unused) kit PIDs
|
|
|
|
std::vector<int> getSpareKitPids();
|
|
|
|
/// Get the list of doc (loaded) kit PIDs
|
|
|
|
std::vector<int> getDocKitPids();
|
|
|
|
|
2017-09-19 15:16:44 -05:00
|
|
|
/// Get the PID of the forkit
|
|
|
|
std::vector<int> getForKitPids();
|
|
|
|
|
2020-01-17 15:18:42 -06:00
|
|
|
/// Which port should we connect to get to WSD.
|
|
|
|
int getClientPort();
|
|
|
|
|
2019-10-08 04:23:29 -05:00
|
|
|
/// How many live loolkit processes do we have ?
|
2017-09-19 15:16:44 -05:00
|
|
|
int getLoolKitProcessCount();
|
|
|
|
|
2017-05-11 21:08:20 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|