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 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/extensions/extension_sync_data.h" | 25 #include "chrome/browser/extensions/extension_sync_data.h" |
26 #include "chrome/browser/extensions/extension_sync_service.h" | 26 #include "chrome/browser/extensions/extension_sync_service.h" |
27 #include "chrome/browser/extensions/extension_util.h" | 27 #include "chrome/browser/extensions/extension_util.h" |
28 #include "chrome/browser/extensions/scripting_permissions_modifier.h" | 28 #include "chrome/browser/extensions/scripting_permissions_modifier.h" |
29 #include "chrome/browser/extensions/updater/extension_updater.h" | 29 #include "chrome/browser/extensions/updater/extension_updater.h" |
30 #include "chrome/browser/sync/profile_sync_service_factory.h" | 30 #include "chrome/browser/sync/profile_sync_service_factory.h" |
31 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/extensions/sync_helper.h" | 33 #include "chrome/common/extensions/sync_helper.h" |
34 #include "chrome/test/base/testing_profile.h" | 34 #include "chrome/test/base/testing_profile.h" |
35 #include "components/browser_sync/browser/profile_sync_service.h" | 35 #include "components/browser_sync/profile_sync_service.h" |
36 #include "components/crx_file/id_util.h" | 36 #include "components/crx_file/id_util.h" |
37 #include "components/sync/api/fake_sync_change_processor.h" | 37 #include "components/sync/api/fake_sync_change_processor.h" |
38 #include "components/sync/api/sync_change_processor_wrapper_for_test.h" | 38 #include "components/sync/api/sync_change_processor_wrapper_for_test.h" |
39 #include "components/sync/api/sync_data.h" | 39 #include "components/sync/api/sync_data.h" |
40 #include "components/sync/api/sync_error_factory_mock.h" | 40 #include "components/sync/api/sync_error_factory_mock.h" |
41 #include "components/variations/variations_associated_data.h" | 41 #include "components/variations/variations_associated_data.h" |
42 #include "extensions/browser/api_test_utils.h" | 42 #include "extensions/browser/api_test_utils.h" |
43 #include "extensions/browser/app_sorting.h" | 43 #include "extensions/browser/app_sorting.h" |
44 #include "extensions/browser/extension_prefs.h" | 44 #include "extensions/browser/extension_prefs.h" |
45 #include "extensions/browser/extension_registry.h" | 45 #include "extensions/browser/extension_registry.h" |
(...skipping 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2510 break; | 2510 break; |
2511 } | 2511 } |
2512 } | 2512 } |
2513 } | 2513 } |
2514 EXPECT_TRUE(found_delete); | 2514 EXPECT_TRUE(found_delete); |
2515 | 2515 |
2516 // Make sure there is one extension, and there are no more apps. | 2516 // Make sure there is one extension, and there are no more apps. |
2517 EXPECT_EQ(1u, extensions_processor.data().size()); | 2517 EXPECT_EQ(1u, extensions_processor.data().size()); |
2518 EXPECT_TRUE(apps_processor.data().empty()); | 2518 EXPECT_TRUE(apps_processor.data().empty()); |
2519 } | 2519 } |
OLD | NEW |