Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: chrome/browser/browsing_data_remover_unittest.cc

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/extensions/extension_data_deleter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698