diff UnitTestsSources/MultiThreadingTests.cpp @ 2812:ea7aea6f6a95

improved naming of methods in IJob
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Sep 2018 16:23:40 +0200
parents 7cfc8d266f41
children 925d8dc03a23
line wrap: on
line diff
--- a/UnitTestsSources/MultiThreadingTests.cpp	Thu Sep 06 12:32:02 2018 +0200
+++ b/UnitTestsSources/MultiThreadingTests.cpp	Thu Sep 06 16:23:40 2018 +0200
@@ -95,11 +95,11 @@
     {
     }
 
-    virtual void SignalResubmit()
+    virtual void Reset()
     {
     }
     
-    virtual JobStepResult ExecuteStep()
+    virtual JobStepResult Step()
     {
       if (fails_)
       {
@@ -116,7 +116,7 @@
       }
     }
 
-    virtual void ReleaseResources(JobReleaseReason reason)
+    virtual void Stop(JobStopReason reason)
     {
     }
 
@@ -162,7 +162,7 @@
     {
     }
     
-    virtual void ReleaseResources(JobReleaseReason reason)
+    virtual void Stop(JobStopReason reason)
     {
     }
 
@@ -962,10 +962,10 @@
     job.AddInstance("nope");
     job.AddInstance("world");
     job.SetPermissive(true);
-    ASSERT_THROW(job.ExecuteStep(), OrthancException);  // Not started yet
+    ASSERT_THROW(job.Step(), OrthancException);  // Not started yet
     job.Start();
-    job.ExecuteStep();
-    job.ExecuteStep();
+    job.Step();
+    job.Step();
 
     {
       DummyUnserializer unserializer;
@@ -1016,7 +1016,7 @@
       lock.SetTrailingOperationTimeout(300);
     }
 
-    ASSERT_EQ(JobStepCode_Continue, job.ExecuteStep().GetCode());
+    ASSERT_EQ(JobStepCode_Continue, job.Step().GetCode());
 
     {
       GenericJobUnserializer unserializer;