Skip to content
This repository
Browse code

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

  • Loading branch information...
commit c4d4916e16f2adcfda2e7e2b322cac9e47b4796c 1 parent 0201391
Garrett Brown authored March 22, 2013

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  xbmc/utils/test/TestJobManager.cpp
12  xbmc/utils/test/TestJobManager.cpp
@@ -68,13 +68,13 @@ TEST_F(TestJobManager, CancelJob)
68 68
 TEST_F(TestJobManager, Pause)
69 69
 {
70 70
   CJob* job = new CSysInfoJob();
71  
-  CJobManager::GetInstance().AddJob(job, NULL);
  71
+  CJobManager::GetInstance().AddJob(job, NULL, CJob::PRIORITY_NORMAL);
72 72
 
73  
-  EXPECT_FALSE(CJobManager::GetInstance().IsPaused(""));
74  
-  CJobManager::GetInstance().Pause("");
75  
-  EXPECT_TRUE(CJobManager::GetInstance().IsPaused(""));
76  
-  CJobManager::GetInstance().UnPause("");
77  
-  EXPECT_FALSE(CJobManager::GetInstance().IsPaused(""));
  73
+  EXPECT_FALSE(CJobManager::GetInstance().IsPaused(CJob::PRIORITY_NORMAL));
  74
+  CJobManager::GetInstance().Pause(CJob::PRIORITY_NORMAL);
  75
+  EXPECT_TRUE(CJobManager::GetInstance().IsPaused(CJob::PRIORITY_NORMAL));
  76
+  CJobManager::GetInstance().UnPause(CJob::PRIORITY_NORMAL);
  77
+  EXPECT_FALSE(CJobManager::GetInstance().IsPaused(CJob::PRIORITY_NORMAL));
78 78
 
79 79
   CJobManager::GetInstance().CancelJobs();
80 80
 }

0 notes on commit c4d4916

Please sign in to comment.
Something went wrong with that request. Please try again.