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

Side by Side Diff: chrome/test/live_sync/live_apps_sync_test.cc

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: 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 #include "chrome/test/live_sync/live_apps_sync_test.h" 5 #include "chrome/test/live_sync/live_apps_sync_test.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return extension_helper_.InstallExtension(profile, 57 return extension_helper_.InstallExtension(profile,
58 CreateFakeAppName(index), 58 CreateFakeAppName(index),
59 Extension::TYPE_HOSTED_APP); 59 Extension::TYPE_HOSTED_APP);
60 } 60 }
61 61
62 void LiveAppsSyncTest::UninstallApp(Profile* profile, int index) { 62 void LiveAppsSyncTest::UninstallApp(Profile* profile, int index) {
63 return extension_helper_.UninstallExtension(profile, 63 return extension_helper_.UninstallExtension(profile,
64 CreateFakeAppName(index)); 64 CreateFakeAppName(index));
65 } 65 }
66 66
67 void LiveAppsSyncTest::EnableApp(Profile* profile, int index) {
68 return extension_helper_.EnableExtension(profile,
69 CreateFakeAppName(index));
70 }
71
72 void LiveAppsSyncTest::DisableApp(Profile* profile, int index) {
73 return extension_helper_.DisableExtension(profile,
74 CreateFakeAppName(index));
75 }
76
77 void LiveAppsSyncTest::IncognitoEnableApp(Profile* profile, int index) {
78 return extension_helper_.IncognitoEnableExtension(profile,
79 CreateFakeAppName(index));
80 }
81
82 void LiveAppsSyncTest::IncognitoDisableApp(Profile* profile, int index) {
83 return extension_helper_.IncognitoDisableExtension(profile,
84 CreateFakeAppName(index));
85 }
86
67 void LiveAppsSyncTest::InstallAppsPendingForSync( 87 void LiveAppsSyncTest::InstallAppsPendingForSync(
68 Profile* profile) { 88 Profile* profile) {
69 extension_helper_.InstallExtensionsPendingForSync( 89 extension_helper_.InstallExtensionsPendingForSync(
70 profile, Extension::TYPE_HOSTED_APP); 90 profile, Extension::TYPE_HOSTED_APP);
71 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698