Sha256: 0f811926b87c91fb6d6ac3787b359f23ed88aab2f4c623cc38942d17e7f96608

Contents?: true

Size: 854 Bytes

Versions: 27

Compression:

Stored size: 854 Bytes

Contents

#include "TestSupport.h"
#include "ApplicationPool/Pool.h"
#include "Utils.h"

using namespace Passenger;

namespace tut {
	struct ApplicationPool_PoolTest {
		ServerInstanceDirPtr serverInstanceDir;
		ServerInstanceDir::GenerationPtr generation;
		ApplicationPool::Ptr pool, pool2;
		
		ApplicationPool_PoolTest() {
			createServerInstanceDirAndGeneration(serverInstanceDir, generation);
			pool = ptr(new ApplicationPool::Pool("../helper-scripts/passenger-spawn-server", generation));
			pool2 = pool;
		}
		
		ApplicationPool::Ptr newPoolConnection() {
			return pool;
		}
		
		void reinitializeWithSpawnManager(AbstractSpawnManagerPtr spawnManager) {
			pool = ptr(new ApplicationPool::Pool(spawnManager));
			pool2 = pool;
		}
	};

	DEFINE_TEST_GROUP(ApplicationPool_PoolTest);

	#define USE_TEMPLATE
	#include "ApplicationPool_PoolTestCases.cpp"
}

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
passenger-3.0.21 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.19 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.18 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.17 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.15 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.14 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.13 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.12 test/cxx/ApplicationPool_PoolTest.cpp
yspassenger-3.0.12 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.11 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.10 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.9 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.8 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.7 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.6 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.5 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.4 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.3 test/cxx/ApplicationPool_PoolTest.cpp
railsware-passenger-3.0.2.1 test/cxx/ApplicationPool_PoolTest.cpp
passenger-3.0.2 test/cxx/ApplicationPool_PoolTest.cpp