| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 ExtensionSyncData::CreateFromSyncData(list[0]); | 697 ExtensionSyncData::CreateFromSyncData(list[0]); |
| 698 ASSERT_TRUE(data.get()); | 698 ASSERT_TRUE(data.get()); |
| 699 EXPECT_TRUE(data->enabled()); | 699 EXPECT_TRUE(data->enabled()); |
| 700 EXPECT_TRUE(data->incognito_enabled()); | 700 EXPECT_TRUE(data->incognito_enabled()); |
| 701 EXPECT_EQ(ExtensionSyncData::BOOLEAN_TRUE, data->all_urls_enabled()); | 701 EXPECT_EQ(ExtensionSyncData::BOOLEAN_TRUE, data->all_urls_enabled()); |
| 702 } | 702 } |
| 703 } | 703 } |
| 704 | 704 |
| 705 TEST_F(ExtensionServiceSyncTest, SyncForUninstalledExternalExtension) { | 705 TEST_F(ExtensionServiceSyncTest, SyncForUninstalledExternalExtension) { |
| 706 InitializeEmptyExtensionService(); | 706 InitializeEmptyExtensionService(); |
| 707 InstallCRXWithLocation( | 707 InstallCRX(data_dir().AppendASCII("good.crx"), Manifest::EXTERNAL_PREF, |
| 708 data_dir().AppendASCII("good.crx"), Manifest::EXTERNAL_PREF, INSTALL_NEW); | 708 INSTALL_NEW, Extension::NO_FLAGS); |
| 709 const Extension* extension = service()->GetInstalledExtension(good_crx); | 709 const Extension* extension = service()->GetInstalledExtension(good_crx); |
| 710 ASSERT_TRUE(extension); | 710 ASSERT_TRUE(extension); |
| 711 | 711 |
| 712 extension_sync_service()->MergeDataAndStartSyncing( | 712 extension_sync_service()->MergeDataAndStartSyncing( |
| 713 syncer::EXTENSIONS, syncer::SyncDataList(), | 713 syncer::EXTENSIONS, syncer::SyncDataList(), |
| 714 base::MakeUnique<syncer::FakeSyncChangeProcessor>(), | 714 base::MakeUnique<syncer::FakeSyncChangeProcessor>(), |
| 715 base::MakeUnique<syncer::SyncErrorFactoryMock>()); | 715 base::MakeUnique<syncer::SyncErrorFactoryMock>()); |
| 716 StartSyncing(syncer::APPS); | 716 StartSyncing(syncer::APPS); |
| 717 | 717 |
| 718 UninstallExtension(good_crx, false); | 718 UninstallExtension(good_crx, false); |
| (...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2467 break; | 2467 break; |
| 2468 } | 2468 } |
| 2469 } | 2469 } |
| 2470 } | 2470 } |
| 2471 EXPECT_TRUE(found_delete); | 2471 EXPECT_TRUE(found_delete); |
| 2472 | 2472 |
| 2473 // Make sure there is one extension, and there are no more apps. | 2473 // Make sure there is one extension, and there are no more apps. |
| 2474 EXPECT_EQ(1u, extensions_processor.data().size()); | 2474 EXPECT_EQ(1u, extensions_processor.data().size()); |
| 2475 EXPECT_TRUE(apps_processor.data().empty()); | 2475 EXPECT_TRUE(apps_processor.data().empty()); |
| 2476 } | 2476 } |
| OLD | NEW |