OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browsing_data/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "net/ssl/server_bound_cert_service.h" | 39 #include "net/ssl/server_bound_cert_service.h" |
40 #include "net/ssl/server_bound_cert_store.h" | 40 #include "net/ssl/server_bound_cert_store.h" |
41 #include "net/ssl/ssl_client_cert_type.h" | 41 #include "net/ssl/ssl_client_cert_type.h" |
42 #include "net/url_request/url_request_context.h" | 42 #include "net/url_request/url_request_context.h" |
43 #include "net/url_request/url_request_context_getter.h" | 43 #include "net/url_request/url_request_context_getter.h" |
44 #include "testing/gtest/include/gtest/gtest.h" | 44 #include "testing/gtest/include/gtest/gtest.h" |
45 #include "third_party/WebKit/public/platform/WebCString.h" | 45 #include "third_party/WebKit/public/platform/WebCString.h" |
46 #include "third_party/WebKit/public/platform/WebString.h" | 46 #include "third_party/WebKit/public/platform/WebString.h" |
47 #include "webkit/browser/quota/mock_quota_manager.h" | 47 #include "webkit/browser/quota/mock_quota_manager.h" |
48 #include "webkit/browser/quota/quota_manager.h" | 48 #include "webkit/browser/quota/quota_manager.h" |
| 49 #include "webkit/common/dom_storage/dom_storage_types.h" |
49 #include "webkit/common/quota/quota_types.h" | 50 #include "webkit/common/quota/quota_types.h" |
50 #include "webkit/dom_storage/dom_storage_types.h" | |
51 #include "webkit/glue/webkit_glue.h" | 51 #include "webkit/glue/webkit_glue.h" |
52 | 52 |
53 using content::BrowserThread; | 53 using content::BrowserThread; |
54 | 54 |
55 namespace { | 55 namespace { |
56 | 56 |
57 const char kTestOrigin1[] = "http://host1:1/"; | 57 const char kTestOrigin1[] = "http://host1:1/"; |
58 const char kTestOrigin2[] = "http://host2:1/"; | 58 const char kTestOrigin2[] = "http://host2:1/"; |
59 const char kTestOrigin3[] = "http://host3:1/"; | 59 const char kTestOrigin3[] = "http://host3:1/"; |
60 const char kTestOriginExt[] = "chrome-extension://abcdefghijklmnopqrstuvwxyz/"; | 60 const char kTestOriginExt[] = "chrome-extension://abcdefghijklmnopqrstuvwxyz/"; |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 BlockUntilBrowsingDataRemoved( | 1392 BlockUntilBrowsingDataRemoved( |
1393 BrowsingDataRemover::LAST_HOUR, | 1393 BrowsingDataRemover::LAST_HOUR, |
1394 BrowsingDataRemover::REMOVE_HISTORY, false); | 1394 BrowsingDataRemover::REMOVE_HISTORY, false); |
1395 | 1395 |
1396 EXPECT_EQ(BrowsingDataRemover::REMOVE_HISTORY, GetRemovalMask()); | 1396 EXPECT_EQ(BrowsingDataRemover::REMOVE_HISTORY, GetRemovalMask()); |
1397 EXPECT_EQ(BrowsingDataHelper::UNPROTECTED_WEB, GetOriginSetMask()); | 1397 EXPECT_EQ(BrowsingDataHelper::UNPROTECTED_WEB, GetOriginSetMask()); |
1398 EXPECT_TRUE(tester.HasOrigin(std::string())); | 1398 EXPECT_TRUE(tester.HasOrigin(std::string())); |
1399 EXPECT_FALSE(tester.HasOrigin(kWebOrigin)); | 1399 EXPECT_FALSE(tester.HasOrigin(kWebOrigin)); |
1400 EXPECT_TRUE(tester.HasOrigin(kChromeOrigin)); | 1400 EXPECT_TRUE(tester.HasOrigin(kChromeOrigin)); |
1401 } | 1401 } |
OLD | NEW |