| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_remover.h" | 5 #include "chrome/browser/browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 class BrowsingDataRemoverTest : public testing::Test { | 237 class BrowsingDataRemoverTest : public testing::Test { |
| 238 public: | 238 public: |
| 239 BrowsingDataRemoverTest() | 239 BrowsingDataRemoverTest() |
| 240 : ui_thread_(BrowserThread::UI, &message_loop_), | 240 : ui_thread_(BrowserThread::UI, &message_loop_), |
| 241 db_thread_(BrowserThread::DB, &message_loop_), | 241 db_thread_(BrowserThread::DB, &message_loop_), |
| 242 webkit_thread_(BrowserThread::WEBKIT, &message_loop_), | 242 webkit_thread_(BrowserThread::WEBKIT, &message_loop_), |
| 243 file_thread_(BrowserThread::FILE, &message_loop_), | 243 file_thread_(BrowserThread::FILE, &message_loop_), |
| 244 io_thread_(BrowserThread::IO, &message_loop_), | 244 io_thread_(BrowserThread::IO, &message_loop_), |
| 245 profile_(new TestingProfile()) { | 245 profile_(new TestingProfile()) { |
| 246 profile_->GetPrefs()->SetBoolean(prefs::kClearPluginLSODataEnabled, false); | |
| 247 } | 246 } |
| 248 | 247 |
| 249 virtual ~BrowsingDataRemoverTest() { | 248 virtual ~BrowsingDataRemoverTest() { |
| 250 } | 249 } |
| 251 | 250 |
| 252 void TearDown() { | 251 void TearDown() { |
| 253 // TestingProfile contains a WebKitContext. WebKitContext's destructor | 252 // TestingProfile contains a WebKitContext. WebKitContext's destructor |
| 254 // posts a message to the WEBKIT thread to delete some of its member | 253 // posts a message to the WEBKIT thread to delete some of its member |
| 255 // variables. We need to ensure that the profile is destroyed, and that | 254 // variables. We need to ensure that the profile is destroyed, and that |
| 256 // the message loop is cleared out, before destroying the threads and loop. | 255 // the message loop is cleared out, before destroying the threads and loop. |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 quota::kStorageTypeTemporary)); | 508 quota::kStorageTypeTemporary)); |
| 510 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, | 509 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, |
| 511 quota::kStorageTypePersistent)); | 510 quota::kStorageTypePersistent)); |
| 512 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, | 511 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, |
| 513 quota::kStorageTypePersistent)); | 512 quota::kStorageTypePersistent)); |
| 514 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, | 513 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, |
| 515 quota::kStorageTypePersistent)); | 514 quota::kStorageTypePersistent)); |
| 516 } | 515 } |
| 517 | 516 |
| 518 } // namespace | 517 } // namespace |
| OLD | NEW |