@@ -263,24 +263,6 @@ main(int argc, char** argv)
263
263
// test to ensure null error_status pointers are correctly handled
264
264
tests.add_test (" test_error_ptr_null" , [] {
265
265
266
- <<<<<<< HEAD
267
- =======
268
- <<<<<<< HEAD
269
- // std::cout << "running error null test" << std::endl;
270
-
271
- >>>>>>> 25de98d (merge)
272
- using namespace otio ;
273
-
274
- // tests for no image bounds on media reference on clip
275
- SerializableObject::Retainer<Clip> clip (new Clip);
276
-
277
- // check that there is an error, and that it's the correct error
278
- otio::ErrorStatus mr_bounds_error;
279
- <<<<<<< HEAD
280
- clip->available_image_bounds (&mr_bounds_error);
281
- =======
282
- mr_clip->available_image_bounds (&mr_bounds_error);
283
- =======
284
266
using namespace otio ;
285
267
286
268
// tests for no image bounds on media reference on clip
@@ -289,8 +271,6 @@ main(int argc, char** argv)
289
271
// check that there is an error, and that it's the correct error
290
272
otio::ErrorStatus mr_bounds_error;
291
273
clip->available_image_bounds (&mr_bounds_error);
292
- >>>>>>> bacf095 (fixed image bounds error status null bug + test case (#1896 ))
293
- >>>>>>> 25de98d (merge)
294
274
assertTrue (otio::is_error (mr_bounds_error));
295
275
assertEqual (
296
276
mr_bounds_error.outcome ,
@@ -300,49 +280,6 @@ main(int argc, char** argv)
300
280
otio::ErrorStatus* null_test = nullptr ;
301
281
302
282
assertEqual (
303
- <<<<<<< HEAD
304
- clip->available_image_bounds (null_test), std::optional<IMATH_NAMESPACE::Box2d>()
305
- =======
306
- <<<<<<< HEAD
307
- mr_clip->available_image_bounds (null_test), std::optional<IMATH_NAMESPACE::Box2d>()
308
- >>>>>>> 25de98d (merge)
309
- );
310
- });
311
-
312
- // test to ensure null error_status pointers are correctly handled
313
- // when there's no media reference
314
- tests.add_test (" test_error_ptr_null_no_media" , [] {
315
- using namespace otio ;
316
-
317
- SerializableObject::Retainer<Clip> clip (new Clip);
318
-
319
- <<<<<<< HEAD
320
- // set media reference to empty
321
- Clip::MediaReferences empty_mrs;
322
- empty_mrs[" empty" ] = nullptr ;
323
- clip->set_media_references (empty_mrs, " empty" );
324
- =======
325
- otio::ErrorStatus status;
326
- SerializableObject::Retainer<> so =
327
- SerializableObject::from_json_string (
328
- R"(
329
- {
330
- "OTIO_SCHEMA": "Clip.1"
331
- })" ,
332
- &status);
333
-
334
- assertFalse (is_error (status));
335
-
336
- Clip* clip = dynamic_cast <Clip*>(so.value );
337
- assertNotNull (clip);
338
-
339
- // set media reference key to empty string
340
- otio::ErrorStatus media_ref_key_error;
341
- clip->set_active_media_reference_key (" " , &media_ref_key_error);
342
- <<<<<<< HEAD
343
- >>>>>>> 3fad221 (fixed non-initialized pointer)
344
- =======
345
- =======
346
283
clip->available_image_bounds (null_test), std::optional<IMATH_NAMESPACE::Box2d>()
347
284
);
348
285
});
@@ -358,8 +295,6 @@ main(int argc, char** argv)
358
295
Clip::MediaReferences empty_mrs;
359
296
empty_mrs[" empty" ] = nullptr ;
360
297
clip->set_media_references (empty_mrs, " empty" );
361
- >>>>>>> bacf095 (fixed image bounds error status null bug + test case (#1896 ))
362
- >>>>>>> 25de98d (merge)
363
298
364
299
otio::ErrorStatus bounds_error_no_mr;
365
300
clip->available_image_bounds (&bounds_error_no_mr);
0 commit comments