Skip to content

Commit 032f98d

Browse files
committed
fixing old commits
Signed-off-by: Yingjie Wang <[email protected]>
1 parent 4192243 commit 032f98d

File tree

1 file changed

+0
-65
lines changed

1 file changed

+0
-65
lines changed

tests/test_clip.cpp

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -263,24 +263,6 @@ main(int argc, char** argv)
263263
// test to ensure null error_status pointers are correctly handled
264264
tests.add_test("test_error_ptr_null", [] {
265265

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-
=======
284266
using namespace otio;
285267

286268
// tests for no image bounds on media reference on clip
@@ -289,8 +271,6 @@ main(int argc, char** argv)
289271
// check that there is an error, and that it's the correct error
290272
otio::ErrorStatus mr_bounds_error;
291273
clip->available_image_bounds(&mr_bounds_error);
292-
>>>>>>> bacf095 (fixed image bounds error status null bug + test case (#1896))
293-
>>>>>>> 25de98d (merge)
294274
assertTrue(otio::is_error(mr_bounds_error));
295275
assertEqual(
296276
mr_bounds_error.outcome,
@@ -300,49 +280,6 @@ main(int argc, char** argv)
300280
otio::ErrorStatus* null_test = nullptr;
301281

302282
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-
=======
346283
clip->available_image_bounds(null_test), std::optional<IMATH_NAMESPACE::Box2d>()
347284
);
348285
});
@@ -358,8 +295,6 @@ main(int argc, char** argv)
358295
Clip::MediaReferences empty_mrs;
359296
empty_mrs["empty"] = nullptr;
360297
clip->set_media_references(empty_mrs, "empty");
361-
>>>>>>> bacf095 (fixed image bounds error status null bug + test case (#1896))
362-
>>>>>>> 25de98d (merge)
363298

364299
otio::ErrorStatus bounds_error_no_mr;
365300
clip->available_image_bounds(&bounds_error_no_mr);

0 commit comments

Comments
 (0)