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 27 matching lines...) Expand all Loading... |
38 #include "components/sync/model/fake_sync_change_processor.h" | 38 #include "components/sync/model/fake_sync_change_processor.h" |
39 #include "components/sync/model/sync_change_processor_wrapper_for_test.h" | 39 #include "components/sync/model/sync_change_processor_wrapper_for_test.h" |
40 #include "components/sync/model/sync_data.h" | 40 #include "components/sync/model/sync_data.h" |
41 #include "components/sync/model/sync_error_factory_mock.h" | 41 #include "components/sync/model/sync_error_factory_mock.h" |
42 #include "components/variations/variations_associated_data.h" | 42 #include "components/variations/variations_associated_data.h" |
43 #include "extensions/browser/api_test_utils.h" | 43 #include "extensions/browser/api_test_utils.h" |
44 #include "extensions/browser/app_sorting.h" | 44 #include "extensions/browser/app_sorting.h" |
45 #include "extensions/browser/extension_prefs.h" | 45 #include "extensions/browser/extension_prefs.h" |
46 #include "extensions/browser/extension_registry.h" | 46 #include "extensions/browser/extension_registry.h" |
47 #include "extensions/browser/extension_system.h" | 47 #include "extensions/browser/extension_system.h" |
| 48 #include "extensions/browser/extension_util.h" |
48 #include "extensions/browser/management_policy.h" | 49 #include "extensions/browser/management_policy.h" |
49 #include "extensions/browser/test_management_policy.h" | 50 #include "extensions/browser/test_management_policy.h" |
50 #include "extensions/common/constants.h" | 51 #include "extensions/common/constants.h" |
51 #include "extensions/common/extension_builder.h" | 52 #include "extensions/common/extension_builder.h" |
52 #include "extensions/common/manifest_url_handlers.h" | 53 #include "extensions/common/manifest_url_handlers.h" |
53 #include "extensions/common/permissions/permission_set.h" | 54 #include "extensions/common/permissions/permission_set.h" |
54 #include "extensions/common/value_builder.h" | 55 #include "extensions/common/value_builder.h" |
55 #include "testing/gtest/include/gtest/gtest.h" | 56 #include "testing/gtest/include/gtest/gtest.h" |
56 | 57 |
57 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 58 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
(...skipping 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 break; | 2466 break; |
2466 } | 2467 } |
2467 } | 2468 } |
2468 } | 2469 } |
2469 EXPECT_TRUE(found_delete); | 2470 EXPECT_TRUE(found_delete); |
2470 | 2471 |
2471 // Make sure there is one extension, and there are no more apps. | 2472 // Make sure there is one extension, and there are no more apps. |
2472 EXPECT_EQ(1u, extensions_processor.data().size()); | 2473 EXPECT_EQ(1u, extensions_processor.data().size()); |
2473 EXPECT_TRUE(apps_processor.data().empty()); | 2474 EXPECT_TRUE(apps_processor.data().empty()); |
2474 } | 2475 } |
OLD | NEW |