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

Unified Diff: ios/chrome/browser/ui/history/history_service_facade_unittest.mm

Issue 2624963003: [ObjC ARC] Converts ios/chrome/browser/ui/history:history to ARC. (Closed)
Patch Set: Removes the rest of weak and scoped nsobjects. Created 3 years, 11 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
Index: ios/chrome/browser/ui/history/history_service_facade_unittest.mm
diff --git a/ios/chrome/browser/ui/history/history_service_facade_unittest.mm b/ios/chrome/browser/ui/history/history_service_facade_unittest.mm
index 9eb964df7ac08709246c511ceda726d352c41962..ed735d338cc96d2e88590cd99f47e5cb1108e120 100644
--- a/ios/chrome/browser/ui/history/history_service_facade_unittest.mm
+++ b/ios/chrome/browser/ui/history/history_service_facade_unittest.mm
@@ -6,7 +6,6 @@
#include <memory>
-#import "base/mac/scoped_nsobject.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "components/history/core/browser/history_service.h"
@@ -106,7 +105,7 @@ class HistoryServiceFacadeTest : public PlatformTest,
bool success = browser_state_->CreateHistoryService(true);
EXPECT_TRUE(success);
- mock_delegate_.reset([[MockHistoryServiceFacadeDelegate alloc] init]);
+ mock_delegate_ = [[MockHistoryServiceFacadeDelegate alloc] init];
history_service_facade_.reset(
new HistoryServiceFacade(browser_state_.get(), mock_delegate_));
}
@@ -176,7 +175,7 @@ class HistoryServiceFacadeTest : public PlatformTest,
protected:
web::TestWebThreadBundle thread_bundle_;
std::unique_ptr<TestChromeBrowserState> browser_state_;
- base::scoped_nsobject<MockHistoryServiceFacadeDelegate> mock_delegate_;
+ MockHistoryServiceFacadeDelegate* mock_delegate_;
std::unique_ptr<HistoryServiceFacade> history_service_facade_;
GURL visited_url_;
base::Time visited_time_;
« no previous file with comments | « ios/chrome/browser/ui/history/history_service_facade.mm ('k') | ios/chrome/browser/ui/history/history_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698