File: ApplicationPoolServer_ApplicationPoolTest.cpp

package info (click to toggle)
passenger 2.2.11debian-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,576 kB
  • ctags: 28,138
  • sloc: cpp: 66,323; ruby: 9,646; ansic: 2,425; python: 141; sh: 56; makefile: 29
file content (33 lines) | stat: -rw-r--r-- 768 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "tut.h"
#include "support/Support.h"
#include <boost/thread.hpp>
#include "ApplicationPoolServer.h"

using namespace Passenger;
using namespace boost;
using namespace Test;

namespace tut {
	struct ApplicationPoolServer_ApplicationPoolTest {
		ApplicationPoolServerPtr server;
		ApplicationPoolPtr pool, pool2;
		
		ApplicationPoolServer_ApplicationPoolTest() {
			server = ptr(new ApplicationPoolServer(
				"./ApplicationPoolServerExecutable",
				"../bin/passenger-spawn-server"));
			pool = server->connect();
			pool2 = server->connect();
		}
		
		ApplicationPoolPtr newPoolConnection() {
			return server->connect();
		}
	};
	
	DEFINE_TEST_GROUP(ApplicationPoolServer_ApplicationPoolTest);
	
	#define USE_TEMPLATE
	#include "ApplicationPoolTest.cpp"
}