| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "base/scoped_nsobject.h" | 7 #import "base/scoped_nsobject.h" |
| 8 #import "chrome/app/keystone_glue.h" | |
| 9 #import "chrome/browser/cocoa/about_window_controller.h" | 8 #import "chrome/browser/cocoa/about_window_controller.h" |
| 10 #include "chrome/browser/cocoa/browser_test_helper.h" | 9 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 11 #include "chrome/browser/cocoa/cocoa_test_helper.h" | 10 #include "chrome/browser/cocoa/cocoa_test_helper.h" |
| 11 #import "chrome/browser/cocoa/keystone_glue.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 void PostAutoupdateStatusNotification(AutoupdateStatus status, | 17 void PostAutoupdateStatusNotification(AutoupdateStatus status, |
| 18 NSString* version) { | 18 NSString* version) { |
| 19 NSNumber* statusNumber = [NSNumber numberWithInt:status]; | 19 NSNumber* statusNumber = [NSNumber numberWithInt:status]; |
| 20 NSMutableDictionary* dictionary = | 20 NSMutableDictionary* dictionary = |
| 21 [NSMutableDictionary dictionaryWithObjects:&statusNumber | 21 [NSMutableDictionary dictionaryWithObjects:&statusNumber |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 stringValue]]); | 135 stringValue]]); |
| 136 #endif | 136 #endif |
| 137 | 137 |
| 138 lastText = [[about_window_controller_ updateText] stringValue]; | 138 lastText = [[about_window_controller_ updateText] stringValue]; |
| 139 PostAutoupdateStatusNotification(kAutoupdateInstallFailed, nil); | 139 PostAutoupdateStatusNotification(kAutoupdateInstallFailed, nil); |
| 140 ASSERT_FALSE([lastText isEqual:[[about_window_controller_ | 140 ASSERT_FALSE([lastText isEqual:[[about_window_controller_ |
| 141 updateText] stringValue]]); | 141 updateText] stringValue]]); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace | 144 } // namespace |
| OLD | NEW |