| OLD | NEW |
| 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 #import "ios/chrome/browser/installation_notifier.h" | 5 #import "ios/chrome/browser/installation_notifier.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 7 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 8 | 9 |
| 9 #include "base/ios/block_types.h" | 10 #include "base/ios/block_types.h" |
| 10 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 12 #include "base/test/histogram_tester.h" | 13 #include "base/test/histogram_tester.h" |
| 13 #include "ios/web/public/test/test_web_thread.h" | 14 #include "ios/web/public/test/test_web_thread.h" |
| 14 #include "net/base/backoff_entry.h" | 15 #include "net/base/backoff_entry.h" |
| 15 #include "testing/platform_test.h" | 16 #include "testing/platform_test.h" |
| 16 | 17 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 271 |
| 271 TEST_F(InstallationNotifierTest, TestThatEmptySchemeDoesntCrashChrome) { | 272 TEST_F(InstallationNotifierTest, TestThatEmptySchemeDoesntCrashChrome) { |
| 272 [installationNotifier_ | 273 [installationNotifier_ |
| 273 registerForInstallationNotifications:notificationReceiver1_ | 274 registerForInstallationNotifications:notificationReceiver1_ |
| 274 withSelector:@selector(receivedNotification) | 275 withSelector:@selector(receivedNotification) |
| 275 forScheme:nil]; | 276 forScheme:nil]; |
| 276 [installationNotifier_ unregisterForNotifications:notificationReceiver1_]; | 277 [installationNotifier_ unregisterForNotifications:notificationReceiver1_]; |
| 277 } | 278 } |
| 278 | 279 |
| 279 } // namespace | 280 } // namespace |
| OLD | NEW |