]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_HelperChildConfig.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / tests / stub_HelperChildConfig.cc
1 /*
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #include "squid.h"
10 #include "globals.h"
11 #include "helper/ChildConfig.h"
12
13 #define STUB_API "stub_HelperChildconfig.cc"
14 #include "tests/STUB.h"
15
16 #include <cstring>
17
18 Helper::ChildConfig::ChildConfig():
19 n_max(0),
20 n_startup(0),
21 n_idle(1),
22 concurrency(0),
23 n_running(0),
24 n_active(0),
25 queue_size(0),
26 onPersistentOverload(actDie),
27 defaultQueueSize(true)
28 {}
29
30 Helper::ChildConfig::ChildConfig(const unsigned int m):
31 n_max(m),
32 n_startup(0),
33 n_idle(1),
34 concurrency(0),
35 n_running(0),
36 n_active(0),
37 queue_size(2 * m),
38 onPersistentOverload(actDie),
39 defaultQueueSize(true)
40 {}
41
42 int Helper::ChildConfig::needNew() const STUB_RETVAL(0)
43 void Helper::ChildConfig::parseConfig() STUB
44 Helper::ChildConfig & Helper::ChildConfig::updateLimits(const Helper::ChildConfig &) STUB_RETVAL(*this)
45