Adding 'override', removing 'virtual' from overriding functions' declarations in...
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / utc-Dali-Degree.cpp
index 5bf1f1e..eb64d9c 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
 #include <iostream>
 
 #include <stdlib.h>
@@ -40,6 +57,44 @@ int UtcDaliDegreeConstructors01(void)
   END_TEST;
 }
 
+int UtcDaliDegreeCopyConstructor(void)
+{
+  Degree degree0( 90.0f );
+  Degree degree1( degree0 );
+  DALI_TEST_EQUALS( degree1.degree, 90.0f, 0.001f, TEST_LOCATION );
+
+  END_TEST;
+}
+
+int UtcDaliDegreeMoveConstructor(void)
+{
+  Degree degree0( 90.0f );
+  Degree degree1 = std::move( degree0 );
+  DALI_TEST_EQUALS( degree1.degree, 90.0f, 0.001f, TEST_LOCATION );
+
+  END_TEST;
+}
+
+int UtcDaliDegreeCopyAssignment(void)
+{
+  Degree degree0( 90.0f );
+  Degree degree1;
+  degree1 = degree0;
+  DALI_TEST_EQUALS( degree1.degree, 90.0f, 0.001f, TEST_LOCATION );
+
+  END_TEST;
+}
+
+int UtcDaliDegreeMoveAssignment(void)
+{
+  Degree degree0( 90.0f );
+  Degree degree1;
+  degree1 = std::move( degree0 );
+  DALI_TEST_EQUALS( degree1.degree, 90.0f, 0.001f, TEST_LOCATION );
+
+  END_TEST;
+}
+
 // Positive test case for comparison
 int UtcDaliDegreeComparison01(void)
 {