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

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

Issue 437053: In-application Keystone ticket promotion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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