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

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

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: manual change Created 3 years, 12 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
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/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "base/memory/ptr_util.h"
9 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
10 #include "base/metrics/user_metrics.h" 11 #include "base/metrics/user_metrics.h"
11 #import "ios/chrome/browser/installation_notifier.h" 12 #import "ios/chrome/browser/installation_notifier.h"
12 #include "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h" 13 #include "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h"
13 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller .h" 14 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller .h"
14 #include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_provider.h" 15 #include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_provider.h"
15 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_ metadata.h" 16 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_ metadata.h"
16 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_ whitelist_manager.h" 17 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_ whitelist_manager.h"
17 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h" 18 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h"
18 #include "ios/web/public/test/test_web_thread.h" 19 #include "ios/web/public/test/test_web_thread.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 2); 168 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 2);
168 [fakeManager setAppScheme:kMapsAppName]; 169 [fakeManager setAppScheme:kMapsAppName];
169 [controller_ removeAppFromNotification:notificationMaps]; 170 [controller_ removeAppFromNotification:notificationMaps];
170 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 1); 171 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 1);
171 [fakeManager setAppScheme:kYoutubeAppName]; 172 [fakeManager setAppScheme:kYoutubeAppName];
172 [controller_ removeAppFromNotification:notificationYouTube]; 173 [controller_ removeAppFromNotification:notificationYouTube];
173 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 0); 174 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 0);
174 } 175 }
175 176
176 } // namespace 177 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698