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

Side by Side Diff: chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 5 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/memory/scoped_nsobject.h" 6 #include "base/mac/scoped_nsobject.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 10 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
11 #import "chrome/browser/ui/cocoa/confirm_bubble_cocoa.h" 11 #import "chrome/browser/ui/cocoa/confirm_bubble_cocoa.h"
12 #import "chrome/browser/ui/cocoa/confirm_bubble_controller.h" 12 #import "chrome/browser/ui/cocoa/confirm_bubble_controller.h"
13 #include "chrome/browser/ui/confirm_bubble_model.h" 13 #include "chrome/browser/ui/confirm_bubble_model.h"
14 #include "grit/theme_resources.h" 14 #include "grit/theme_resources.h"
15 #import "testing/gtest_mac.h" 15 #import "testing/gtest_mac.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Click its link and verify this view has been removed from the test window. 185 // Click its link and verify this view has been removed from the test window.
186 // Also verify TestConfirmBubbleModel::LinkClicked() has been called. 186 // Also verify TestConfirmBubbleModel::LinkClicked() has been called.
187 [bubble clickLink]; 187 [bubble clickLink];
188 188
189 contains_bubble_view = [[view subviews] containsObject:bubble]; 189 contains_bubble_view = [[view subviews] containsObject:bubble];
190 EXPECT_FALSE(contains_bubble_view); 190 EXPECT_FALSE(contains_bubble_view);
191 EXPECT_FALSE(accept_clicked()); 191 EXPECT_FALSE(accept_clicked());
192 EXPECT_FALSE(cancel_clicked()); 192 EXPECT_FALSE(cancel_clicked());
193 EXPECT_TRUE(link_clicked()); 193 EXPECT_TRUE(link_clicked());
194 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698