| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
| 6 #import <objc/objc-class.h> | 6 #import <objc/objc-class.h> |
| 7 | 7 |
| 8 #import "chrome/browser/mac/keystone_glue.h" | 8 #import "chrome/browser/mac/keystone_glue.h" |
| 9 #import "chrome/browser/mac/keystone_registration.h" | 9 #import "chrome/browser/mac/keystone_registration.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 - (BOOL)promoteWithParameters:(NSDictionary*)args | 33 - (BOOL)promoteWithParameters:(NSDictionary*)args |
| 34 authorization:(AuthorizationRef)authorization { | 34 authorization:(AuthorizationRef)authorization { |
| 35 return NO; | 35 return NO; |
| 36 } | 36 } |
| 37 | 37 |
| 38 - (BOOL)setActive { | 38 - (BOOL)setActive { |
| 39 return NO; | 39 return NO; |
| 40 } | 40 } |
| 41 | 41 |
| 42 - (BOOL)setActiveWithReportingAttributes:(NSArray*)reportingAttributes | |
| 43 error:(NSError**)error { | |
| 44 return NO; | |
| 45 } | |
| 46 | |
| 47 - (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated { | 42 - (void)checkForUpdateWasUserInitiated:(BOOL)userInitiated { |
| 48 } | 43 } |
| 49 | 44 |
| 50 - (void)startUpdate { | 45 - (void)startUpdate { |
| 51 } | 46 } |
| 52 | 47 |
| 53 - (ksr::KSRegistrationTicketType)ticketType { | 48 - (ksr::KSRegistrationTicketType)ticketType { |
| 54 return ksr::kKSRegistrationDontKnowWhatKindOfTicket; | 49 return ksr::kKSRegistrationDontKnowWhatKindOfTicket; |
| 55 } | 50 } |
| 56 | 51 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 [glue stopTimer]; | 214 [glue stopTimer]; |
| 220 | 215 |
| 221 // Brief exercise of callbacks | 216 // Brief exercise of callbacks |
| 222 [glue addFakeRegistration]; | 217 [glue addFakeRegistration]; |
| 223 [glue checkForUpdate]; | 218 [glue checkForUpdate]; |
| 224 [glue installUpdate]; | 219 [glue installUpdate]; |
| 225 ASSERT_TRUE([glue confirmCallbacks]); | 220 ASSERT_TRUE([glue confirmCallbacks]); |
| 226 } | 221 } |
| 227 | 222 |
| 228 } // namespace | 223 } // namespace |
| OLD | NEW |