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

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

Issue 8636014: Remove useless use of pref from unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698