Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Side by Side Diff: chrome/test/live_sync/apps_helper.h

Issue 7599019: Allow sync integration tests to operate on multiple datatypes: Apps, Extensions, Themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_LIVE_SYNC_APPS_HELPER_H_
6 #define CHROME_TEST_LIVE_SYNC_APPS_HELPER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "chrome/test/live_sync/live_sync_test.h"
12
13 class Profile;
14
15 namespace apps_helper {
16
17 // Returns true iff the profile with index |index| has the same apps as the
18 // verifier.
19 bool HasSameAppsAsVerifier(int index) WARN_UNUSED_RESULT;
20
21 // Returns true iff all existing profiles have the same apps as the verifier.
22 bool AllProfilesHaveSameAppsAsVerifier() WARN_UNUSED_RESULT;
23
24 // Installs the app for the given index to |profile|.
25 void InstallApp(Profile* profile, int index);
26
27 // Uninstalls the app for the given index from |profile|. Assumes that it was
28 // previously installed.
29 void UninstallApp(Profile* profile, int index);
30
31 // Installs all pending synced apps for |profile|.
32 void InstallAppsPendingForSync(Profile* profile);
33
34 // Enables the app for the given index on |profile|.
35 void EnableApp(Profile* profile, int index);
36
37 // Disables the appfor the given index on |profile|.
38 void DisableApp(Profile* profile, int index);
39
40 // Enables the app for the given index in incognito mode on |profile|.
41 void IncognitoEnableApp(Profile* profile, int index);
42
43 // Disables the app for the given index in incognito mode on |profile|.
44 void IncognitoDisableApp(Profile* profile, int index);
45
46 } // namespace apps_helper
47
48 #endif // CHROME_TEST_LIVE_SYNC_APPS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698