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 "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
8 #include "app/tree_model.h" | 8 #include "app/tree_model.h" |
9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browsing_data_remover.h" | 12 #include "chrome/browser/browsing_data_remover.h" |
13 #include "chrome/browser/cookies_tree_model.h" | 13 #include "chrome/browser/cookies_tree_model.h" |
14 #include "chrome/browser/mock_browsing_data_database_helper.h" | 14 #include "chrome/browser/mock_browsing_data_database_helper.h" |
15 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" | 15 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" |
16 #include "chrome/browser/mock_browsing_data_appcache_helper.h" | 16 #include "chrome/browser/mock_browsing_data_appcache_helper.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | 18 #include "chrome/browser/ui/cocoa/browser_test_helper.h" |
19 #include "chrome/browser/ui/cocoa/clear_browsing_data_controller.h" | 19 #include "chrome/browser/ui/cocoa/clear_browsing_data_controller.h" |
20 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 20 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
21 #import "chrome/browser/ui/cocoa/cookies_window_controller.h" | 21 #import "chrome/browser/ui/cocoa/cookies_window_controller.h" |
22 #include "chrome/common/net/url_request_context_getter.h" | 22 #include "chrome/common/net/url_request_context_getter.h" |
23 #include "chrome/test/testing_profile.h" | 23 #include "chrome/test/testing_profile.h" |
24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 #include "net/url_request/url_request_context.h" | 26 #include "net/url_request/url_request_context.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 // Local Storage --> http://host2:2/. | 678 // Local Storage --> http://host2:2/. |
679 node = [[node children] lastObject]; | 679 node = [[node children] lastObject]; |
680 EXPECT_NSEQ(@"http://host2:2/", [node title]); | 680 EXPECT_NSEQ(@"http://host2:2/", [node title]); |
681 EXPECT_EQ(kCocoaCookieDetailsTypeTreeLocalStorage, [node nodeType]); | 681 EXPECT_EQ(kCocoaCookieDetailsTypeTreeLocalStorage, [node nodeType]); |
682 EXPECT_NSEQ(@"http://host2:2/", [[node details] domain]); | 682 EXPECT_NSEQ(@"http://host2:2/", [[node details] domain]); |
683 EXPECT_TRUE([[node details] lastModified]); | 683 EXPECT_TRUE([[node details] lastModified]); |
684 EXPECT_TRUE([[node details] fileSize]); | 684 EXPECT_TRUE([[node details] fileSize]); |
685 } | 685 } |
686 | 686 |
687 } // namespace | 687 } // namespace |
OLD | NEW |