Skip to content

Commit

Permalink
[gtest] Fix compile: Use CJob priority level instead of empty job name
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Mar 22, 2013
1 parent 0201391 commit c4d4916
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xbmc/utils/test/TestJobManager.cpp
Expand Up @@ -68,13 +68,13 @@ TEST_F(TestJobManager, CancelJob)
TEST_F(TestJobManager, Pause)
{
CJob* job = new CSysInfoJob();
CJobManager::GetInstance().AddJob(job, NULL);
CJobManager::GetInstance().AddJob(job, NULL, CJob::PRIORITY_NORMAL);

EXPECT_FALSE(CJobManager::GetInstance().IsPaused(""));
CJobManager::GetInstance().Pause("");
EXPECT_TRUE(CJobManager::GetInstance().IsPaused(""));
CJobManager::GetInstance().UnPause("");
EXPECT_FALSE(CJobManager::GetInstance().IsPaused(""));
EXPECT_FALSE(CJobManager::GetInstance().IsPaused(CJob::PRIORITY_NORMAL));
CJobManager::GetInstance().Pause(CJob::PRIORITY_NORMAL);
EXPECT_TRUE(CJobManager::GetInstance().IsPaused(CJob::PRIORITY_NORMAL));
CJobManager::GetInstance().UnPause(CJob::PRIORITY_NORMAL);
EXPECT_FALSE(CJobManager::GetInstance().IsPaused(CJob::PRIORITY_NORMAL));

CJobManager::GetInstance().CancelJobs();
}
Expand Down

0 comments on commit c4d4916

Please sign in to comment.