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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
8 #include "chrome/browser/browsing_data_remover.h" | 8 #include "chrome/browser/browsing_data_remover.h" |
9 #include "chrome/browser/cocoa/browser_test_helper.h" | 9 #include "chrome/browser/cocoa/browser_test_helper.h" |
10 #import "chrome/browser/cocoa/clear_browsing_data_controller.h" | 10 #import "chrome/browser/cocoa/clear_browsing_data_controller.h" |
11 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
12 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "testing/platform_test.h" | 16 #include "testing/platform_test.h" |
17 #import "third_party/ocmock/OCMock/OCMock.h" | 17 #import "third_party/ocmock/OCMock/OCMock.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 class ClearBrowsingDataControllerTest : public CocoaTest { | 21 class ClearBrowsingDataControllerTest : public CocoaTest { |
22 public: | 22 public: |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 object:controller | 140 object:controller |
141 userInfo:expectedInfo]; | 141 userInfo:expectedInfo]; |
142 | 142 |
143 // This calls |-closeDialog| and cleans the controller up. | 143 // This calls |-closeDialog| and cleans the controller up. |
144 [controller dataRemoverDidFinish]; | 144 [controller dataRemoverDidFinish]; |
145 | 145 |
146 [observer verify]; | 146 [observer verify]; |
147 } | 147 } |
148 | 148 |
149 } // namespace | 149 } // namespace |
OLD | NEW |