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

Side by Side Diff: chrome/browser/cocoa/about_window_controller_unittest.mm

Issue 449004: Merge r33241 to the 249 branch.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/about_window_controller.mm ('k') | chrome/browser/cocoa/authorization_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698