void llupdaterservice_object::test<2>()
    {
        DEBUG;
		LLUpdaterService updater;
		bool got_usage_error = false;
		try
		{
			updater.initialize("1.0",test_url, "update" ,test_channel, test_version);
			updater.startChecking();
			updater.initialize("1.0", "other_url", "update", test_channel, test_version);
		}
		catch(LLUpdaterService::UsageError)
		{
			got_usage_error = true;
		}
		ensure("Caught params while running", got_usage_error);
	}
    void llupdaterservice_object::test<3>()
    {
        DEBUG;
		LLUpdaterService updater;
		updater.initialize("1.0", test_url, "update", test_channel, test_version);
		updater.startChecking();
		ensure(updater.isChecking());
		updater.stopChecking();
		ensure(!updater.isChecking());
	}
예제 #3
0
    void llupdaterservice_object::test<2>()
    {
        DEBUG;
		LLUpdaterService updater;
		bool got_usage_error = false;
		try
		{
			unsigned char id1[MD5HEX_STR_SIZE] = "11111111111111111111111111111111";
			updater.initialize(test_channel, test_version, "win", "1.2.3", id1, true);
			updater.startChecking();
			unsigned char id2[MD5HEX_STR_SIZE] = "22222222222222222222222222222222";
			updater.initialize(test_channel, test_version, "win", "4.5.6", id2, true);
		}
		catch(LLUpdaterService::UsageError)
		{
			got_usage_error = true;
		}
		ensure("Caught params while running", got_usage_error);
	}
예제 #4
0
    void llupdaterservice_object::test<3>()
    {
        DEBUG;
		LLUpdaterService updater;
		unsigned char id[MD5HEX_STR_SIZE] = "33333333333333333333333333333333";
		updater.initialize(test_channel, test_version, "win", "7.8.9", id, true);
		updater.startChecking();
		ensure(updater.isChecking());
		updater.stopChecking();
		ensure(!updater.isChecking());
	}