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());
	}
Exemplo n.º 2
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());
	}
    void llupdaterservice_object::test<1>()
    {
        DEBUG;
		LLUpdaterService updater;
		bool got_usage_error = false;
		try
		{
			updater.startChecking();
		}
		catch(LLUpdaterService::UsageError)
		{
			got_usage_error = true;
		}
		ensure("Caught start before params", got_usage_error);
	}
    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);
	}
Exemplo n.º 5
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);
	}