Mercurial > hg > orthanc
comparison UnitTestsSources/RestApiTests.cpp @ 974:83622b0f544c
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Jun 2014 14:44:05 +0200 |
parents | 1a3817d84f39 |
children | c550e99c452b |
comparison
equal
deleted
inserted
replaced
972:2047e6f033bd | 974:83622b0f544c |
---|---|
194 | 194 |
195 | 195 |
196 static int testValue; | 196 static int testValue; |
197 | 197 |
198 template <int value> | 198 template <int value> |
199 static void SetValue(RestApi::GetCall& get) | 199 static void SetValue(RestApiGetCall& get) |
200 { | 200 { |
201 testValue = value; | 201 testValue = value; |
202 } | 202 } |
203 | 203 |
204 | 204 |
215 static bool HandleGet(RestApiHierarchy& hierarchy, | 215 static bool HandleGet(RestApiHierarchy& hierarchy, |
216 const std::string& uri) | 216 const std::string& uri) |
217 { | 217 { |
218 UriComponents p; | 218 UriComponents p; |
219 Toolbox::SplitUriComponents(p, uri); | 219 Toolbox::SplitUriComponents(p, uri); |
220 return hierarchy.Handle(*reinterpret_cast<RestApi::GetCall*>(NULL), p); | 220 return hierarchy.Handle(*reinterpret_cast<RestApiGetCall*>(NULL), p); |
221 } | 221 } |
222 | 222 |
223 | 223 |
224 TEST(RestApi, RestApiHierarchy) | 224 TEST(RestApi, RestApiHierarchy) |
225 { | 225 { |