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

Unified Diff: ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm

Issue 2688163002: [ObjC ARC] Converts ios/chrome/browser/crash_report:unit_tests to ARC. (Closed)
Patch Set: Created 3 years, 10 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/chrome/browser/crash_report/breakpad_helper_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm
diff --git a/ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm b/ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm
index 955d63379a12663a9ffa5e9ef04379b3ad3d4e76..688c97e6ad9b36b831dcb6b70a1ac20594635362 100644
--- a/ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm
+++ b/ios/chrome/browser/crash_report/crash_restore_helper_unittest.mm
@@ -7,7 +7,6 @@
#include <memory>
#include "base/logging.h"
-#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
@@ -20,6 +19,10 @@
#import "third_party/ocmock/OCMock/OCMock.h"
#include "third_party/ocmock/gtest_support.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using testing::Return;
@interface CrashRestoreHelper (Test)
@@ -35,15 +38,15 @@ class CrashRestoreHelperTest : public PlatformTest {
chrome_browser_state_ = test_cbs_builder.Build();
otr_chrome_browser_state_ =
chrome_browser_state_->GetOffTheRecordChromeBrowserState();
- helper_.reset([[CrashRestoreHelper alloc]
- initWithBrowserState:chrome_browser_state_.get()]);
+ helper_ = [[CrashRestoreHelper alloc]
+ initWithBrowserState:chrome_browser_state_.get()];
}
protected:
web::TestWebThreadBundle thread_bundle_;
std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
ios::ChromeBrowserState* otr_chrome_browser_state_;
- base::scoped_nsobject<CrashRestoreHelper> helper_;
+ CrashRestoreHelper* helper_;
};
TEST_F(CrashRestoreHelperTest, MoveAsideTest) {
« no previous file with comments | « ios/chrome/browser/crash_report/breakpad_helper_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698