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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 }; | 235 }; |
236 | 236 |
237 // Test Class ---------------------------------------------------------------- | 237 // Test Class ---------------------------------------------------------------- |
238 | 238 |
239 class BrowsingDataRemoverTest : public testing::Test, | 239 class BrowsingDataRemoverTest : public testing::Test, |
240 public content::NotificationObserver { | 240 public content::NotificationObserver { |
241 public: | 241 public: |
242 BrowsingDataRemoverTest() | 242 BrowsingDataRemoverTest() |
243 : ui_thread_(BrowserThread::UI, &message_loop_), | 243 : ui_thread_(BrowserThread::UI, &message_loop_), |
244 db_thread_(BrowserThread::DB, &message_loop_), | 244 db_thread_(BrowserThread::DB, &message_loop_), |
245 webkit_thread_(BrowserThread::WEBKIT, &message_loop_), | 245 webkit_thread_(BrowserThread::WEBKIT_DEPRECATED, &message_loop_), |
246 file_thread_(BrowserThread::FILE, &message_loop_), | 246 file_thread_(BrowserThread::FILE, &message_loop_), |
247 io_thread_(BrowserThread::IO, &message_loop_), | 247 io_thread_(BrowserThread::IO, &message_loop_), |
248 profile_(new TestingProfile()) { | 248 profile_(new TestingProfile()) { |
249 registrar_.Add(this, chrome::NOTIFICATION_BROWSING_DATA_REMOVED, | 249 registrar_.Add(this, chrome::NOTIFICATION_BROWSING_DATA_REMOVED, |
250 content::Source<Profile>(profile_.get())); | 250 content::Source<Profile>(profile_.get())); |
251 } | 251 } |
252 | 252 |
253 virtual ~BrowsingDataRemoverTest() { | 253 virtual ~BrowsingDataRemoverTest() { |
254 } | 254 } |
255 | 255 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 quota::kStorageTypeTemporary)); | 558 quota::kStorageTypeTemporary)); |
559 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, | 559 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin1, |
560 quota::kStorageTypePersistent)); | 560 quota::kStorageTypePersistent)); |
561 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, | 561 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin2, |
562 quota::kStorageTypePersistent)); | 562 quota::kStorageTypePersistent)); |
563 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, | 563 EXPECT_FALSE(GetMockManager()->OriginHasData(kOrigin3, |
564 quota::kStorageTypePersistent)); | 564 quota::kStorageTypePersistent)); |
565 } | 565 } |
566 | 566 |
567 } // namespace | 567 } // namespace |
OLD | NEW |