Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c4d4916e16f2adcfda2e7e2b322cac9e47b4796c 1 parent 0201391
@garbear garbear authored
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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.