| 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 #include "chrome/test/live_sync/live_extensions_sync_test.h" | 5 #include "chrome/test/live_sync/live_extensions_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 return extension_helper_.InstallExtension(profile, | 55 return extension_helper_.InstallExtension(profile, |
| 56 CreateFakeExtensionName(index), | 56 CreateFakeExtensionName(index), |
| 57 Extension::TYPE_EXTENSION); | 57 Extension::TYPE_EXTENSION); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void LiveExtensionsSyncTest::UninstallExtension(Profile* profile, int index) { | 60 void LiveExtensionsSyncTest::UninstallExtension(Profile* profile, int index) { |
| 61 return extension_helper_.UninstallExtension(profile, | 61 return extension_helper_.UninstallExtension(profile, |
| 62 CreateFakeExtensionName(index)); | 62 CreateFakeExtensionName(index)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void LiveExtensionsSyncTest::EnableExtension(Profile* profile, int index) { |
| 66 return extension_helper_.EnableExtension(profile, |
| 67 CreateFakeExtensionName(index)); |
| 68 } |
| 69 |
| 70 void LiveExtensionsSyncTest::DisableExtension(Profile* profile, int index) { |
| 71 return extension_helper_.DisableExtension(profile, |
| 72 CreateFakeExtensionName(index)); |
| 73 } |
| 74 |
| 75 void LiveExtensionsSyncTest::IncognitoEnableExtension(Profile* profile, |
| 76 int index) { |
| 77 return extension_helper_.IncognitoEnableExtension( |
| 78 profile, CreateFakeExtensionName(index)); |
| 79 } |
| 80 |
| 81 void LiveExtensionsSyncTest::IncognitoDisableExtension(Profile* profile, |
| 82 int index) { |
| 83 return extension_helper_.IncognitoDisableExtension( |
| 84 profile, CreateFakeExtensionName(index)); |
| 85 } |
| 86 |
| 65 void LiveExtensionsSyncTest::InstallExtensionsPendingForSync( | 87 void LiveExtensionsSyncTest::InstallExtensionsPendingForSync( |
| 66 Profile* profile) { | 88 Profile* profile) { |
| 67 extension_helper_.InstallExtensionsPendingForSync( | 89 extension_helper_.InstallExtensionsPendingForSync( |
| 68 profile, Extension::TYPE_EXTENSION); | 90 profile, Extension::TYPE_EXTENSION); |
| 69 } | 91 } |
| OLD | NEW |