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

Side by Side Diff: chrome/browser/extensions/api/browsing_data/browsing_data_test.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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
OLDNEW
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/extensions/api/browsing_data/browsing_data_api.h" 5 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 content::NotificationRegistrar registrar_; 117 content::NotificationRegistrar registrar_;
118 }; 118 };
119 119
120 } // namespace 120 } // namespace
121 121
122 IN_PROC_BROWSER_TEST_F(ExtensionBrowsingDataTest, OneAtATime) { 122 IN_PROC_BROWSER_TEST_F(ExtensionBrowsingDataTest, OneAtATime) {
123 BrowsingDataRemover::set_removing(true); 123 BrowsingDataRemover::set_removing(true);
124 scoped_refptr<RemoveBrowsingDataFunction> function = 124 scoped_refptr<RemoveBrowsingDataFunction> function =
125 new RemoveBrowsingDataFunction(); 125 new RemoveBrowsingDataFunction();
126 EXPECT_TRUE(MatchPattern( 126 EXPECT_TRUE(MatchPattern(
127 RunFunctionAndReturnError(function, 127 RunFunctionAndReturnError(function.get(),
128 kRemoveEverythingArguments, 128 kRemoveEverythingArguments,
129 browser()), 129 browser()),
130 extension_browsing_data_api_constants::kOneAtATimeError)); 130 extension_browsing_data_api_constants::kOneAtATimeError));
131 BrowsingDataRemover::set_removing(false); 131 BrowsingDataRemover::set_removing(false);
132 132
133 EXPECT_EQ(base::Time(), GetBeginTime()); 133 EXPECT_EQ(base::Time(), GetBeginTime());
134 EXPECT_EQ(-1, GetRemovalMask()); 134 EXPECT_EQ(-1, GetRemovalMask());
135 } 135 }
136 136
137 // Use-after-free, see http://crbug.com/116522 137 // Use-after-free, see http://crbug.com/116522
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 BrowsingDataRemover::REMOVE_INDEXEDDB); 230 BrowsingDataRemover::REMOVE_INDEXEDDB);
231 RunAndCompareRemovalMask<RemoveLocalStorageFunction>( 231 RunAndCompareRemovalMask<RemoveLocalStorageFunction>(
232 BrowsingDataRemover::REMOVE_LOCAL_STORAGE); 232 BrowsingDataRemover::REMOVE_LOCAL_STORAGE);
233 // We can't remove plugin data inside a test profile. 233 // We can't remove plugin data inside a test profile.
234 RunAndCompareRemovalMask<RemovePasswordsFunction>( 234 RunAndCompareRemovalMask<RemovePasswordsFunction>(
235 BrowsingDataRemover::REMOVE_PASSWORDS); 235 BrowsingDataRemover::REMOVE_PASSWORDS);
236 RunAndCompareRemovalMask<RemoveWebSQLFunction>( 236 RunAndCompareRemovalMask<RemoveWebSQLFunction>(
237 BrowsingDataRemover::REMOVE_WEBSQL); 237 BrowsingDataRemover::REMOVE_WEBSQL);
238 } 238 }
239 239
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698