| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/simple_content_exceptions_window_controller.h" | 5 #import "chrome/browser/cocoa/simple_content_exceptions_window_controller.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "chrome/browser/cocoa/browser_test_helper.h" | 11 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 12 #include "chrome/browser/cocoa/cocoa_test_helper.h" | 12 #include "chrome/browser/cocoa/cocoa_test_helper.h" |
| 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 13 #include "chrome/browser/geolocation/geolocation_exceptions_table_model.h" | 14 #include "chrome/browser/geolocation/geolocation_exceptions_table_model.h" |
| 14 #include "chrome/browser/host_content_settings_map.h" | |
| 15 #include "chrome/browser/plugin_exceptions_table_model.h" | 15 #include "chrome/browser/plugin_exceptions_table_model.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 18 | 18 |
| 19 @interface SimpleContentExceptionsWindowController (Testing) | 19 @interface SimpleContentExceptionsWindowController (Testing) |
| 20 | 20 |
| 21 @property(readonly, nonatomic) TableModelArrayController* arrayController; | 21 @property(readonly, nonatomic) TableModelArrayController* arrayController; |
| 22 | 22 |
| 23 @end | 23 @end |
| 24 | 24 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 SimpleContentExceptionsWindowController* controller = GetController(); | 86 SimpleContentExceptionsWindowController* controller = GetController(); |
| 87 ClickRemoveAll(controller); | 87 ClickRemoveAll(controller); |
| 88 | 88 |
| 89 [controller close]; | 89 [controller close]; |
| 90 | 90 |
| 91 EXPECT_EQ(0u, geolocation_settings_->GetAllOriginsSettings().size()); | 91 EXPECT_EQ(0u, geolocation_settings_->GetAllOriginsSettings().size()); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace | 94 } // namespace |
| OLD | NEW |