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

Unified Diff: ios/web/net/request_group_util_unittest.mm

Issue 2933383002: [ObjC ARC] Converts ios/web:ios_web_net_unittests to ARC. (Closed)
Patch Set: import -> include Created 3 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/net/request_tracker_impl_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/request_group_util_unittest.mm
diff --git a/ios/web/net/request_group_util_unittest.mm b/ios/web/net/request_group_util_unittest.mm
index 9cf780912bea04ab654f08a77c9006cb41751281..d05953d103d28d913ebca5a69564255c7aa6281b 100644
--- a/ios/web/net/request_group_util_unittest.mm
+++ b/ios/web/net/request_group_util_unittest.mm
@@ -7,13 +7,16 @@
#import <Foundation/Foundation.h>
#include <stddef.h>
-#import "base/mac/scoped_nsobject.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
// Checks that all newly generated groupID are unique and that there are no
// duplicates.
TEST(RequestGroupUtilTest, RequestGroupID) {
- base::scoped_nsobject<NSMutableSet> set([[NSMutableSet alloc] init]);
+ NSMutableSet* set = [[NSMutableSet alloc] init];
const size_t kGenerated = 2000;
for (size_t i = 0; i < kGenerated; ++i)
[set addObject:web::GenerateNewRequestGroupID()];
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/net/request_tracker_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698