| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_APPS_SYNC_TEST_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_APPS_SYNC_TEST_H_ |
| 6 #define CHROME_TEST_LIVE_SYNC_LIVE_APPS_SYNC_TEST_H_ | 6 #define CHROME_TEST_LIVE_SYNC_LIVE_APPS_SYNC_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Installs the app for the given index to |profile|. | 34 // Installs the app for the given index to |profile|. |
| 35 void InstallApp(Profile* profile, int index); | 35 void InstallApp(Profile* profile, int index); |
| 36 | 36 |
| 37 // Uninstalls the app for the given index from |profile|. Assumes that it was | 37 // Uninstalls the app for the given index from |profile|. Assumes that it was |
| 38 // previously installed. | 38 // previously installed. |
| 39 void UninstallApp(Profile* profile, int index); | 39 void UninstallApp(Profile* profile, int index); |
| 40 | 40 |
| 41 // Installs all pending synced apps for |profile|. | 41 // Installs all pending synced apps for |profile|. |
| 42 void InstallAppsPendingForSync(Profile* profile); | 42 void InstallAppsPendingForSync(Profile* profile); |
| 43 | 43 |
| 44 // Enables the app for the given index on |profile|. |
| 45 void EnableApp(Profile* profile, int index); |
| 46 |
| 47 // Disables the appfor the given index on |profile|. |
| 48 void DisableApp(Profile* profile, int index); |
| 49 |
| 50 // Enables the app for the given index in incognito mode on |profile|. |
| 51 void IncognitoEnableApp(Profile* profile, int index); |
| 52 |
| 53 // Disables the app for the given index in incognito mode on |profile|. |
| 54 void IncognitoDisableApp(Profile* profile, int index); |
| 55 |
| 44 private: | 56 private: |
| 45 LiveSyncExtensionHelper extension_helper_; | 57 LiveSyncExtensionHelper extension_helper_; |
| 46 | 58 |
| 47 DISALLOW_COPY_AND_ASSIGN(LiveAppsSyncTest); | 59 DISALLOW_COPY_AND_ASSIGN(LiveAppsSyncTest); |
| 48 }; | 60 }; |
| 49 | 61 |
| 50 #endif // CHROME_TEST_LIVE_SYNC_LIVE_APPS_SYNC_TEST_H_ | 62 #endif // CHROME_TEST_LIVE_SYNC_LIVE_APPS_SYNC_TEST_H_ |
| OLD | NEW |