| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/prefs/pref_registry_simple.h" | |
| 10 #include "base/values.h" | 9 #include "base/values.h" |
| 11 #include "chrome/browser/extensions/component_migration_helper.h" | 10 #include "chrome/browser/extensions/component_migration_helper.h" |
| 12 #include "chrome/browser/extensions/extension_action_test_util.h" | 11 #include "chrome/browser/extensions/extension_action_test_util.h" |
| 13 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
| 14 #include "chrome/browser/extensions/extension_service_test_base.h" | 13 #include "chrome/browser/extensions/extension_service_test_base.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 16 #include "components/prefs/pref_registry_simple.h" |
| 17 #include "extensions/browser/extension_registry.h" | 17 #include "extensions/browser/extension_registry.h" |
| 18 #include "extensions/common/feature_switch.h" | 18 #include "extensions/common/feature_switch.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 using ::testing::Return; | 22 using ::testing::Return; |
| 23 using ::testing::StrictMock; | 23 using ::testing::StrictMock; |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 namespace { | 26 namespace { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 EXPECT_CALL(mock_delegate_, HasComponentAction(kTestActionId)) | 204 EXPECT_CALL(mock_delegate_, HasComponentAction(kTestActionId)) |
| 205 .WillOnce(Return(true)); | 205 .WillOnce(Return(true)); |
| 206 EXPECT_CALL(mock_delegate_, RemoveComponentAction(kTestActionId)); | 206 EXPECT_CALL(mock_delegate_, RemoveComponentAction(kTestActionId)); |
| 207 | 207 |
| 208 mock_helper_->OnActionRemoved(kTestActionId); | 208 mock_helper_->OnActionRemoved(kTestActionId); |
| 209 EXPECT_FALSE(IsTestComponentActionEnabled()); | 209 EXPECT_FALSE(IsTestComponentActionEnabled()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace extensions | 212 } // namespace extensions |
| OLD | NEW |