Sha256: b9060c3e4d239774b440eb7894cc06a1cc873e52c894f71e69b26d31ce2d5558
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
#include "tut.h" #include "PoolOptions.h" using namespace Passenger; using namespace std; namespace tut { struct PoolOptionsTest { }; DEFINE_TEST_GROUP(PoolOptionsTest); // Test the PoolOptions constructors and toVector(). TEST_METHOD(1) { PoolOptions options; options.appRoot = "/foo"; options.frameworkSpawnerTimeout = 123; options.appSpawnerTimeout = 456; options.maxRequests = 789; vector<string> args; args.push_back("abc"); args.push_back("def"); options.toVector(args); PoolOptions copy(args, 2); ensure_equals(options.appRoot, copy.appRoot); ensure_equals(options.lowerPrivilege, copy.lowerPrivilege); ensure_equals(options.lowestUser, copy.lowestUser); ensure_equals(options.environment, copy.environment); ensure_equals(options.spawnMethod, copy.spawnMethod); ensure_equals(options.appType, copy.appType); ensure_equals(options.frameworkSpawnerTimeout, copy.frameworkSpawnerTimeout); ensure_equals(options.appSpawnerTimeout, copy.appSpawnerTimeout); ensure_equals(options.maxRequests, copy.maxRequests); } }
Version data entries
5 entries across 5 versions & 1 rubygems