| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 stringValue]]); | 131 stringValue]]); |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 lastText = [[about_window_controller_ updateText] stringValue]; | 134 lastText = [[about_window_controller_ updateText] stringValue]; |
| 135 PostAutoupdateStatusNotification(kAutoupdateInstallFailed, nil); | 135 PostAutoupdateStatusNotification(kAutoupdateInstallFailed, nil); |
| 136 ASSERT_FALSE([lastText isEqual:[[about_window_controller_ | 136 ASSERT_FALSE([lastText isEqual:[[about_window_controller_ |
| 137 updateText] stringValue]]); | 137 updateText] stringValue]]); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace | 140 } // namespace |
| OLD | NEW |