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

Side by Side Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm

Issue 2948673002: Revert of [ObjC ARC] Converts ios/web:web to ARC. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 <memory> 5 #include <memory>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/metrics/user_metrics.h" 9 #include "base/metrics/user_metrics.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 action_callback_ = 57 action_callback_ =
58 base::Bind(&NativeAppNavigationControllerTest::OnUserAction, 58 base::Bind(&NativeAppNavigationControllerTest::OnUserAction,
59 base::Unretained(this)); 59 base::Unretained(this));
60 base::AddActionCallback(action_callback_); 60 base::AddActionCallback(action_callback_);
61 61
62 handler_called_counter_ = 0; 62 handler_called_counter_ = 0;
63 } 63 }
64 64
65 void TearDown() override { 65 void TearDown() override {
66 base::RemoveActionCallback(action_callback_); 66 base::RemoveActionCallback(action_callback_);
67 controller_ = nil;
68 ChromeWebTest::TearDown(); 67 ChromeWebTest::TearDown();
69 } 68 }
70 69
71 void SetExpectedActionName(const std::string& action_name) { 70 void SetExpectedActionName(const std::string& action_name) {
72 expected_action_name_.reset(new std::string(action_name)); 71 expected_action_name_.reset(new std::string(action_name));
73 } 72 }
74 73
75 void OnUserAction(const std::string& action_name) { 74 void OnUserAction(const std::string& action_name) {
76 EXPECT_EQ(*expected_action_name_, action_name); 75 EXPECT_EQ(*expected_action_name_, action_name);
77 handler_called_counter_++; 76 handler_called_counter_++;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 2); 198 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 2);
200 [fakeManager setAppScheme:kMapsAppName]; 199 [fakeManager setAppScheme:kMapsAppName];
201 [controller_ removeAppFromNotification:notificationMaps]; 200 [controller_ removeAppFromNotification:notificationMaps];
202 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 1); 201 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 1);
203 [fakeManager setAppScheme:kYoutubeAppName]; 202 [fakeManager setAppScheme:kYoutubeAppName];
204 [controller_ removeAppFromNotification:notificationYouTube]; 203 [controller_ removeAppFromNotification:notificationYouTube];
205 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 0); 204 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 0);
206 } 205 }
207 206
208 } // namespace 207 } // namespace
OLDNEW
« no previous file with comments | « no previous file | ios/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698