~alecu/unity-scope-click/launcher-integration

« back to all changes in this revision

Viewing changes to libclickscope/tests/fake_json.h

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura
  • Date: 2014-06-16 15:38:49 UTC
  • mfrom: (289.2.7 uninstallable-scopes)
  • Revision ID: tarmac-20140616153849-2r1iksjd24i8s9zg
- label installed packages as such in results
- tweak icon size in surfacing to align with added subtitle
- allow launching installed scopes from package preview
- no longer filter out installed packages in store scope. Fixes: https://bugs.launchpad.net/bugs/1325224.

Approved by PS Jenkins bot, Rodney Dawes, Pawel Stolowski.

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
    }
177
177
)foo";
178
178
 
 
179
const std::string FAKE_JSON_MANIFEST_ONE_APP = R"foo(
 
180
    {
 
181
        "_removable": 1,
 
182
        "name": "com.example.fake-app",
 
183
        "version": "0.1",
 
184
        "hooks": {
 
185
            "fake-app": {
 
186
                "apparmor": "fake-app.json",
 
187
                "desktop": "fake-app.desktop"
 
188
            }
 
189
        }
 
190
    }
 
191
)foo";
 
192
 
 
193
const std::string FAKE_JSON_MANIFEST_ONE_SCOPE = R"foo(
 
194
    {
 
195
        "_removable": 1,
 
196
        "name": "com.example.fake-scope",
 
197
        "version": "0.1",
 
198
        "hooks": {
 
199
            "fake-scope": {
 
200
                "apparmor": "scope-security.json",
 
201
                "scope": "fake-scope"
 
202
            }
 
203
        }
 
204
    }
 
205
)foo";
 
206
 
 
207
const std::string FAKE_JSON_MANIFEST_ONE_APP_ONE_SCOPE = R"foo(
 
208
    {
 
209
        "_removable": 1,
 
210
        "name": "com.example.fake-1app-1scope",
 
211
        "version": "0.1",
 
212
        "hooks": {
 
213
            "fake-app": {
 
214
                "apparmor": "fake-app.json",
 
215
                "desktop": "fake-app.desktop"
 
216
            },
 
217
            "fake-scope": {
 
218
                "apparmor": "scope-security.json",
 
219
                "scope": "fake-scope"
 
220
            }
 
221
        }
 
222
    }
 
223
)foo";
 
224
 
 
225
const std::string FAKE_JSON_MANIFEST_TWO_APPS_TWO_SCOPES = R"foo(
 
226
    {
 
227
        "_removable": 1,
 
228
        "name": "com.example.fake-2apps-2scopes",
 
229
        "version": "0.1",
 
230
        "hooks": {
 
231
            "fake-app1": {
 
232
                "apparmor": "fake-app1.json",
 
233
                "desktop": "fake-app1.desktop"
 
234
            },
 
235
            "fake-app2": {
 
236
                "apparmor": "fake-app2.json",
 
237
                "desktop": "fake-app2.desktop"
 
238
            },
 
239
            "fake-scope1": {
 
240
                "apparmor": "scope-security1.json",
 
241
                "scope": "fake-scope1"
 
242
            },
 
243
            "fake-scope2": {
 
244
                "apparmor": "scope-security1.json",
 
245
                "scope": "fake-scope2"
 
246
            }
 
247
        }
 
248
    }
 
249
)foo";
 
250
 
179
251
#endif // FAKE_JSON_H