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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_nsobject.h" 7 #import "base/memory/scoped_nsobject.h"
8 #import "base/string_util.h" 8 #import "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #import "chrome/app/chrome_command_ids.h" // For translate menu command ids. 10 #import "chrome/app/chrome_command_ids.h" // For translate menu command ids.
11 #include "chrome/browser/infobars/infobar_tab_helper.h"
11 #import "chrome/browser/translate/translate_infobar_delegate.h" 12 #import "chrome/browser/translate/translate_infobar_delegate.h"
12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
13 #import "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h" 14 #import "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h"
14 #import "chrome/browser/ui/cocoa/infobars/infobar.h" 15 #import "chrome/browser/ui/cocoa/infobars/infobar.h"
15 #import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h" 16 #import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h"
16 #include "chrome/browser/ui/tab_contents/tab_contents.h" 17 #include "chrome/browser/ui/tab_contents/tab_contents.h"
17 #import "content/public/browser/web_contents.h" 18 #import "content/public/browser/web_contents.h"
18 #include "ipc/ipc_message.h" 19 #include "ipc/ipc_message.h"
19 #import "testing/gmock/include/gmock/gmock.h" 20 #import "testing/gmock/include/gmock/gmock.h"
20 #import "testing/gtest/include/gtest/gtest.h" 21 #import "testing/gtest/include/gtest/gtest.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 translate_prefs.IncrementTranslationDeniedCount("en"); 249 translate_prefs.IncrementTranslationDeniedCount("en");
249 } 250 }
250 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE); 251 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE);
251 BeforeTranslateInfobarController* controller = 252 BeforeTranslateInfobarController* controller =
252 (BeforeTranslateInfobarController*)infobar_controller_.get(); 253 (BeforeTranslateInfobarController*)infobar_controller_.get();
253 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil); 254 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil);
254 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil); 255 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil);
255 } 256 }
256 257
257 } // namespace 258 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm ('k') | chrome/browser/ui/cocoa/keystone_infobar_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698