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

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

Issue 7104072: Adding new extension sync integration tests. Also modified the way that profile (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More review changes Created 9 years, 6 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
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_EXTENSIONS_SYNC_TEST_H_ 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ 6 #define CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_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
34 // Installs the extension for the given index to |profile|. 34 // Installs the extension for the given index to |profile|.
35 void InstallExtension(Profile* profile, int index); 35 void InstallExtension(Profile* profile, int index);
36 36
37 // Uninstalls the extension for the given index from |profile|. Assumes that 37 // Uninstalls the extension for the given index from |profile|. Assumes that
38 // it was previously installed. 38 // it was previously installed.
39 void UninstallExtension(Profile* profile, int index); 39 void UninstallExtension(Profile* profile, int index);
40 40
41 // Installs all pending synced extensions for |profile|. 41 // Installs all pending synced extensions for |profile|.
42 void InstallExtensionsPendingForSync(Profile* profile); 42 void InstallExtensionsPendingForSync(Profile* profile);
43 43
44 // Enables the extension for the given index on |profile|.
45 void EnableExtension(Profile* profile, int index);
46
47 // Disables the extension for the given index on |profile|.
48 void DisableExtension(Profile* profile, int index);
49
50 // Enables the extension for the given index in incognito mode on |profile|.
51 void IncognitoEnableExtension(Profile* profile, int index);
52
53 // Disables the extension for the given index in incognito mode on |profile|.
54 void IncognitoDisableExtension(Profile* profile, int index);
55
44 private: 56 private:
45 LiveSyncExtensionHelper extension_helper_; 57 LiveSyncExtensionHelper extension_helper_;
46 58
47 DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest); 59 DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest);
48 }; 60 };
49 61
50 #endif // CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ 62 #endif // CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/live_sync/live_apps_sync_test.cc ('k') | chrome/test/live_sync/live_extensions_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698