Home
last modified time | relevance | path

Searched refs:testObj (Results 1 – 12 of 12) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qgeoaddress/
H A Dtst_qgeoaddress.cpp74 QGeoAddress testObj; in constructorTest() local
76 testObj.setStreet("testId"); in constructorTest()
77 QGeoAddress *testObjPtr = new QGeoAddress(testObj); in constructorTest()
79 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
93 QGeoAddress testObj; in cityTest() local
94 QVERIFY2(testObj.city() == QString(), "Wrong default value"); in cityTest()
95 testObj.setCity("testText"); in cityTest()
96 QVERIFY2(testObj.city() == "testText", "Wrong value returned"); in cityTest()
101 QGeoAddress testObj; in countryCodeTest() local
102 QVERIFY2(testObj.countryCode() == QString(), "Wrong default value"); in countryCodeTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacereview/
H A Dtst_qplacereview.cpp112 QPlaceReview testObj; in constructorTest() local
113 testObj.setLanguage("testId"); in constructorTest()
114 QPlaceReview *testObjPtr = new QPlaceReview(testObj); in constructorTest()
116 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
122 QPlaceReview testObj; in supplierTest() local
123 QVERIFY2(testObj.supplier().supplierId() == QString(), "Wrong default value"); in supplierTest()
127 testObj.setSupplier(sup); in supplierTest()
128 QVERIFY2(testObj.supplier() == sup, "Wrong value returned"); in supplierTest()
133 QPlaceReview testObj; in dateTest() local
134 QCOMPARE(testObj.dateTime(), QDateTime()); in dateTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceperiod/
H A Dtst_qplaceperiod.cpp58 QPlacePeriod testObj; in constructorTest() local
59 testObj.setStartTime(QTime::currentTime()); in constructorTest()
60 QPlacePeriod *testObjPtr = new QPlacePeriod(testObj); in constructorTest()
62 QVERIFY2(testObjPtr->startTime() == testObj.startTime(), "Copy constructor - start time"); in constructorTest()
68 QPlacePeriod testObj; in startDateTest() local
69 QVERIFY2(testObj.startDate().isNull() == true, "Wrong default value"); in startDateTest()
71 testObj.setStartDate(date); in startDateTest()
72 QVERIFY2(testObj.startDate() == date, "Wrong value returned"); in startDateTest()
77 QPlacePeriod testObj; in startTimeTest() local
78 QVERIFY2(testObj.startTime().isNull() == true, "Wrong default value"); in startTimeTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacesupplier/
H A Dtst_qplacesupplier.cpp59 QPlaceSupplier testObj; in constructorTest() local
60 Q_UNUSED(testObj); in constructorTest()
62 QPlaceSupplier *testObjPtr = new QPlaceSupplier(testObj); in constructorTest()
64 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
70 QPlaceSupplier testObj; in nameTest() local
71 QVERIFY2(testObj.name() == QString(), "Wrong default value"); in nameTest()
72 testObj.setName("testText"); in nameTest()
73 QVERIFY2(testObj.name() == "testText", "Wrong value returned"); in nameTest()
78 QPlaceSupplier testObj; in supplierIdTest() local
79 QVERIFY2(testObj.supplierId() == QString(), "Wrong default value"); in supplierIdTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceeditorial/
H A Dtst_qplaceeditorial.cpp104 QPlaceEditorial testObj; in constructorTest() local
105 testObj.setText("testId"); in constructorTest()
106 QPlaceEditorial *testObjPtr = new QPlaceEditorial(testObj); in constructorTest()
108 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
114 QPlaceEditorial testObj; in supplierTest() local
115 QVERIFY2(testObj.supplier().supplierId() == QString(), "Wrong default value"); in supplierTest()
119 testObj.setSupplier(sup); in supplierTest()
120 QVERIFY2(testObj.supplier() == sup, "Wrong value returned"); in supplierTest()
125 QPlaceEditorial testObj; in textTest() local
126 QVERIFY2(testObj.text() == QString(), "Wrong default value"); in textTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qgeotilespec/
H A Dtst_qgeotilespec.cpp93 QGeoTileSpec testObj; in constructorTest() local
94 QGeoTileSpec testObj2(testObj); in constructorTest()
95 QCOMPARE(testObj.plugin(), testObj2.plugin()); in constructorTest()
96 QCOMPARE(testObj.mapId(), testObj2.mapId()); in constructorTest()
97 QCOMPARE(testObj.zoom(), testObj2.zoom()); in constructorTest()
98 QCOMPARE(testObj.x(), testObj2.x()); in constructorTest()
99 QCOMPARE(testObj.y(), testObj2.y()); in constructorTest()
185 QGeoTileSpec testObj(plugin, mapId, zoom, x, y); in assignsOperatorTest() local
187 testObj2 = testObj; in assignsOperatorTest()
195 QVERIFY2(testObj.plugin() == testObj2.plugin(), "Plugin not copied correctly"); in assignsOperatorTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacesearchrequest/
H A Dtst_qplacesearchrequest.cpp64 QPlaceSearchRequest testObj; in constructorTest() local
65 Q_UNUSED(testObj); in constructorTest()
67 QPlaceSearchRequest *testObjPtr = new QPlaceSearchRequest(testObj); in constructorTest()
69 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
75 QPlaceSearchRequest testObj; in searchTermTest() local
76 QVERIFY2(testObj.searchTerm() == QString(), "Wrong default value"); in searchTermTest()
77 testObj.setSearchTerm("testText"); in searchTermTest()
78 QVERIFY2(testObj.searchTerm() == "testText", "Wrong value returned"); in searchTermTest()
83 QPlaceSearchRequest testObj; in categoriesTest() local
84 QVERIFY2(testObj.categories().count() == 0, "Wrong default value"); in categoriesTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceimage/
H A Dtst_qplaceimage.cpp103 QPlaceImage testObj; in constructorTest() local
104 testObj.setImageId("testId"); in constructorTest()
105 QPlaceImage *testObjPtr = new QPlaceImage(testObj); in constructorTest()
107 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
113 QPlaceImage testObj; in supplierTest() local
114 QVERIFY2(testObj.supplier().supplierId() == QString(), "Wrong default value"); in supplierTest()
118 testObj.setSupplier(sup); in supplierTest()
119 QVERIFY2(testObj.supplier() == sup, "Wrong value returned"); in supplierTest()
124 QPlaceImage testObj; in idTest() local
125 QVERIFY2(testObj.imageId() == QString(), "Wrong default value"); in idTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceratings/
H A Dtst_qplaceratings.cpp57 QPlaceRatings testObj; in constructorTest() local
58 Q_UNUSED(testObj); in constructorTest()
60 QPlaceRatings *testObjPtr = new QPlaceRatings(testObj); in constructorTest()
64 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
70 QPlaceRatings testObj; in averageTest() local
71 QVERIFY2(qFuzzyCompare(testObj.average(), 0) , "Wrong default average"); in averageTest()
72 testObj.setAverage(-10.23); in averageTest()
73 QCOMPARE(testObj.average(), -10.23); in averageTest()
78 QPlaceRatings testObj; in countTest() local
79 QVERIFY2(testObj.count() == 0, "Wrong default value"); in countTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacecategory/
H A Dtst_qplacecategory.cpp59 QPlaceCategory testObj; in constructorTest() local
60 Q_UNUSED(testObj); in constructorTest()
62 testObj.setCategoryId("testId"); in constructorTest()
63 QPlaceCategory *testObjPtr = new QPlaceCategory(testObj); in constructorTest()
65 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
71 QPlaceCategory testObj; in categoryIdTest() local
72 QVERIFY2(testObj.categoryId() == QString(), "Wrong default value"); in categoryIdTest()
73 testObj.setCategoryId("testText"); in categoryIdTest()
74 QVERIFY2(testObj.categoryId() == "testText", "Wrong value returned"); in categoryIdTest()
79 QPlaceCategory testObj; in nameTest() local
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplace/
H A Dtst_qplace.cpp78 QPlace testObj; in constructorTest() local
79 testObj.setPlaceId("testId"); in constructorTest()
83 testObj.setExtendedAttribute(QStringLiteral("paymentMethods"), paymentMethods); in constructorTest()
86 testObj.setLocation(loc); in constructorTest()
87 QPlace *testObjPtr = new QPlace(testObj); in constructorTest()
90 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
97 QPlace testObj; in nameTest() local
98 QVERIFY2(testObj.name() == QString(), "Wrong default value"); in nameTest()
99 testObj.setName("testText"); in nameTest()
100 QVERIFY2(testObj.name() == "testText", "Wrong value returned"); in nameTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceattribute/
H A Dtst_qplaceattribute.cpp55 QPlaceAttribute testObj; in constructorTest() local
57 QPlaceAttribute *testObjPtr = new QPlaceAttribute(testObj); in constructorTest()
61 QVERIFY2(*testObjPtr == testObj, "Copy constructor - compare"); in constructorTest()
67 QPlaceAttribute testObj; in operatorsTest() local
68 testObj.setLabel(QStringLiteral("label")); in operatorsTest()
70 testObj2 = testObj; in operatorsTest()
71 QVERIFY2(testObj == testObj2, "Not copied correctly"); in operatorsTest()
73 QVERIFY2(testObj != testObj2, "Object should be different"); in operatorsTest()