Browse files

[gtest] Fix compile: Use CJob priority level instead of empty job name

  • Loading branch information...
1 parent 0201391 commit c4d4916e16f2adcfda2e7e2b322cac9e47b4796c @garbear garbear committed Mar 22, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 xbmc/utils/test/TestJobManager.cpp
View
12 xbmc/utils/test/TestJobManager.cpp
@@ -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();
}

0 comments on commit c4d4916

Please sign in to comment.