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

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

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
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 #import "chrome/browser/translate/translate_infobar_delegate.h" 11 #import "chrome/browser/translate/translate_infobar_delegate.h"
12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
13 #import "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h" 13 #import "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h"
14 #import "chrome/browser/ui/cocoa/infobars/infobar.h" 14 #import "chrome/browser/ui/cocoa/infobars/infobar.h"
15 #import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h" 15 #import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h"
16 #include "chrome/browser/ui/tab_contents/tab_contents.h" 16 #include "chrome/browser/ui/tab_contents/tab_contents.h"
17 #import "content/public/browser/web_contents.h" 17 #import "content/public/browser/web_contents.h"
18 #include "ipc/ipc_message.h"
18 #import "testing/gmock/include/gmock/gmock.h" 19 #import "testing/gmock/include/gmock/gmock.h"
19 #import "testing/gtest/include/gtest/gtest.h" 20 #import "testing/gtest/include/gtest/gtest.h"
20 #import "testing/platform_test.h" 21 #import "testing/platform_test.h"
21 22
22 using content::WebContents; 23 using content::WebContents;
23 24
24 namespace { 25 namespace {
25 26
26 // All states the translate toolbar can assume. 27 // All states the translate toolbar can assume.
27 TranslateInfoBarDelegate::Type kTranslateToolbarStates[] = { 28 TranslateInfoBarDelegate::Type kTranslateToolbarStates[] = {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 translate_prefs.IncrementTranslationDeniedCount("en"); 248 translate_prefs.IncrementTranslationDeniedCount("en");
248 } 249 }
249 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE); 250 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE);
250 BeforeTranslateInfobarController* controller = 251 BeforeTranslateInfobarController* controller =
251 (BeforeTranslateInfobarController*)infobar_controller_.get(); 252 (BeforeTranslateInfobarController*)infobar_controller_.get();
252 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil); 253 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil);
253 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil); 254 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil);
254 } 255 }
255 256
256 } // namespace 257 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/tabpose_window_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698