| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser/extensions/extension_migrator.h" | 5 #include "chrome/browser/extensions/extension_migrator.h" |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ptr_util.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/extensions/extension_service_test_base.h" | 12 #include "chrome/browser/extensions/extension_service_test_base.h" |
| 12 #include "chrome/browser/extensions/external_provider_impl.h" | 13 #include "chrome/browser/extensions/external_provider_impl.h" |
| 13 #include "chrome/browser/extensions/pending_extension_manager.h" | 14 #include "chrome/browser/extensions/pending_extension_manager.h" |
| 14 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| 15 #include "extensions/browser/extension_registry.h" | 16 #include "extensions/browser/extension_registry.h" |
| 16 #include "extensions/common/extension_builder.h" | 17 #include "extensions/common/extension_builder.h" |
| 17 | 18 |
| 18 namespace extensions { | 19 namespace extensions { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 InitWithExistingProfile(); | 100 InitWithExistingProfile(); |
| 100 AddExtension(kOldId); | 101 AddExtension(kOldId); |
| 101 AddExtension(kNewId); | 102 AddExtension(kNewId); |
| 102 service()->CheckForExternalUpdates(); | 103 service()->CheckForExternalUpdates(); |
| 103 base::RunLoop().RunUntilIdle(); | 104 base::RunLoop().RunUntilIdle(); |
| 104 EXPECT_TRUE(!!registry()->GetInstalledExtension(kOldId)); | 105 EXPECT_TRUE(!!registry()->GetInstalledExtension(kOldId)); |
| 105 EXPECT_TRUE(!!registry()->GetInstalledExtension(kNewId)); | 106 EXPECT_TRUE(!!registry()->GetInstalledExtension(kNewId)); |
| 106 } | 107 } |
| 107 | 108 |
| 108 } // namespace extensions | 109 } // namespace extensions |
| OLD | NEW |