| 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 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/browser/history/history_service_factory.h" | 27 #include "chrome/browser/history/history_service_factory.h" |
| 28 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 28 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 29 #include "chrome/common/chrome_notification_types.h" | 29 #include "chrome/common/chrome_notification_types.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/test/base/testing_browser_process.h" | 31 #include "chrome/test/base/testing_browser_process.h" |
| 32 #include "chrome/test/base/testing_profile.h" | 32 #include "chrome/test/base/testing_profile.h" |
| 33 #include "content/public/browser/dom_storage_context.h" | 33 #include "content/public/browser/dom_storage_context.h" |
| 34 #include "content/public/browser/notification_service.h" | 34 #include "content/public/browser/notification_service.h" |
| 35 #include "content/public/browser/storage_partition.h" | 35 #include "content/public/browser/storage_partition.h" |
| 36 #include "content/public/test/test_browser_thread.h" | 36 #include "content/public/test/test_browser_thread.h" |
| 37 #include "net/base/server_bound_cert_service.h" | |
| 38 #include "net/base/server_bound_cert_store.h" | |
| 39 #include "net/base/ssl_client_cert_type.h" | |
| 40 #include "net/cookies/cookie_monster.h" | 37 #include "net/cookies/cookie_monster.h" |
| 38 #include "net/ssl/server_bound_cert_service.h" |
| 39 #include "net/ssl/server_bound_cert_store.h" |
| 40 #include "net/ssl/ssl_client_cert_type.h" |
| 41 #include "net/url_request/url_request_context.h" | 41 #include "net/url_request/url_request_context.h" |
| 42 #include "net/url_request/url_request_context_getter.h" | 42 #include "net/url_request/url_request_context_getter.h" |
| 43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
| 44 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 44 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
| 45 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 45 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 47 #include "webkit/dom_storage/dom_storage_types.h" | 47 #include "webkit/dom_storage/dom_storage_types.h" |
| 48 #include "webkit/glue/webkit_glue.h" | 48 #include "webkit/glue/webkit_glue.h" |
| 49 #include "webkit/quota/mock_quota_manager.h" | 49 #include "webkit/quota/mock_quota_manager.h" |
| 50 #include "webkit/quota/quota_manager.h" | 50 #include "webkit/quota/quota_manager.h" |
| (...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 ASSERT_TRUE(tester.HasProfile()); | 1331 ASSERT_TRUE(tester.HasProfile()); |
| 1332 | 1332 |
| 1333 BlockUntilBrowsingDataRemoved( | 1333 BlockUntilBrowsingDataRemoved( |
| 1334 BrowsingDataRemover::EVERYTHING, | 1334 BrowsingDataRemover::EVERYTHING, |
| 1335 BrowsingDataRemover::REMOVE_FORM_DATA, false); | 1335 BrowsingDataRemover::REMOVE_FORM_DATA, false); |
| 1336 | 1336 |
| 1337 EXPECT_EQ(BrowsingDataRemover::REMOVE_FORM_DATA, GetRemovalMask()); | 1337 EXPECT_EQ(BrowsingDataRemover::REMOVE_FORM_DATA, GetRemovalMask()); |
| 1338 EXPECT_EQ(BrowsingDataHelper::UNPROTECTED_WEB, GetOriginSetMask()); | 1338 EXPECT_EQ(BrowsingDataHelper::UNPROTECTED_WEB, GetOriginSetMask()); |
| 1339 ASSERT_FALSE(tester.HasProfile()); | 1339 ASSERT_FALSE(tester.HasProfile()); |
| 1340 } | 1340 } |
| OLD | NEW |