| 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 "chrome/browser/ui/webui/settings/site_settings_handler.h" | 5 #include "chrome/browser/ui/webui/settings/site_settings_handler.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include <memory> |
| 8 |
| 8 #include "chrome/browser/ui/webui/site_settings_helper.h" | 9 #include "chrome/browser/ui/webui/site_settings_helper.h" |
| 9 #include "chrome/test/base/testing_profile.h" | 10 #include "chrome/test/base/testing_profile.h" |
| 10 #include "components/content_settings/core/common/content_settings.h" | 11 #include "components/content_settings/core/common/content_settings.h" |
| 11 #include "components/content_settings/core/common/content_settings_types.h" | 12 #include "components/content_settings/core/common/content_settings_types.h" |
| 12 #include "content/public/browser/web_ui_data_source.h" | 13 #include "content/public/browser/web_ui_data_source.h" |
| 13 #include "content/public/test/test_browser_thread_bundle.h" | 14 #include "content/public/test/test_browser_thread_bundle.h" |
| 14 #include "content/public/test/test_web_ui.h" | 15 #include "content/public/test/test_web_ui.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 resetArgs.Append(new base::FundamentalValue(type)); | 166 resetArgs.Append(new base::FundamentalValue(type)); |
| 166 handler.HandleResetCategoryPermissionForOrigin(&resetArgs); | 167 handler.HandleResetCategoryPermissionForOrigin(&resetArgs); |
| 167 EXPECT_EQ(3U, web_ui()->call_data().size()); | 168 EXPECT_EQ(3U, web_ui()->call_data().size()); |
| 168 | 169 |
| 169 // Verify the reset was successful. | 170 // Verify the reset was successful. |
| 170 handler.HandleGetExceptionList(&listArgs); | 171 handler.HandleGetExceptionList(&listArgs); |
| 171 ValidateNoOrigin(4U); | 172 ValidateNoOrigin(4U); |
| 172 } | 173 } |
| 173 | 174 |
| 174 } // namespace settings | 175 } // namespace settings |
| OLD | NEW |