@@ -34,27 +34,35 @@ class SharedUnityMenuModelTest : public QObject
3434 actions["test"] = QString("/com/canonical/%1/actions").arg(QString(testId));
3535 model->setActions(actions);
3636
37−// QVERIFY(model->model() != nullptr);
3837 return model;
3938 }
4039
4140private Q_SLOTS:
4241
43− void testDifferentDataCreatesDifferentModels() {
42+ void testCreateModel()
43+ {
44+ QSharedPointer<SharedUnityMenuModel> model(createFullModel("test1"));
45+ QVERIFY(model->model() != nullptr);
46+ }
47+
48+ void testDifferentDataCreatesDifferentModels()
49+ {
4450 QSharedPointer<SharedUnityMenuModel> model1(createFullModel("test1"));
4551 QSharedPointer<SharedUnityMenuModel> model2(createFullModel("test2"));
4652
4753 QVERIFY(model1->model() != model2->model());
4854 }
4955
50− void testSameDataCreatesSameModels() {
56+ void testSameDataCreatesSameModels()
57+ {
5158 QSharedPointer<SharedUnityMenuModel> model1(createFullModel("test1"));
5259 QSharedPointer<SharedUnityMenuModel> model2(createFullModel("test1"));
5360
5461 QCOMPARE(model1->model(), model2->model());
5562 }
5663
57− void testSharedOwnership() {
64+ void testSharedOwnership()
65+ {
5866 QSharedPointer<SharedUnityMenuModel> model1(createFullModel("test1"));
5967 QSharedPointer<SharedUnityMenuModel> model2(createFullModel("test1"));
6068
@@ -66,7 +74,8 @@ private Q_SLOTS:
6674 }
6775
6876 // Tests that changing cached model data does not change the model path of others
69− void testLP1328646() {
77+ void testLP1328646()
78+ {
7079 QSharedPointer<SharedUnityMenuModel> model1(createFullModel("test1"));
7180 QSharedPointer<SharedUnityMenuModel> model2(createFullModel("test1"));
7281