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

Side by Side Diff: chrome/browser/cocoa/translate/translate_infobar_unittest.mm

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 "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_dll_resource.h" // For translate menu command ids. 10 #import "chrome/app/chrome_command_ids.h" // For translate menu command ids.
11 #import "chrome/browser/cocoa/browser_test_helper.h" 11 #import "chrome/browser/cocoa/browser_test_helper.h"
12 #import "chrome/browser/cocoa/cocoa_test_helper.h" 12 #import "chrome/browser/cocoa/cocoa_test_helper.h"
13 #import "chrome/browser/cocoa/infobar.h" 13 #import "chrome/browser/cocoa/infobar.h"
14 #import "chrome/browser/cocoa/translate/translate_infobar_base.h" 14 #import "chrome/browser/cocoa/translate/translate_infobar_base.h"
15 #import "chrome/browser/cocoa/translate/before_translate_infobar_controller.h" 15 #import "chrome/browser/cocoa/translate/before_translate_infobar_controller.h"
16 #import "chrome/browser/renderer_host/site_instance.h" 16 #import "chrome/browser/renderer_host/site_instance.h"
17 #import "chrome/browser/tab_contents/tab_contents.h" 17 #import "chrome/browser/tab_contents/tab_contents.h"
18 #import "chrome/browser/translate/translate_infobar_delegate.h" 18 #import "chrome/browser/translate/translate_infobar_delegate.h"
19 #import "testing/gmock/include/gmock/gmock.h" 19 #import "testing/gmock/include/gmock/gmock.h"
20 #import "testing/gtest/include/gtest/gtest.h" 20 #import "testing/gtest/include/gtest/gtest.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 translate_prefs.IncrementTranslationDeniedCount("en"); 245 translate_prefs.IncrementTranslationDeniedCount("en");
246 } 246 }
247 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE); 247 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE);
248 BeforeTranslateInfobarController* controller = 248 BeforeTranslateInfobarController* controller =
249 (BeforeTranslateInfobarController*)infobar_controller.get(); 249 (BeforeTranslateInfobarController*)infobar_controller.get();
250 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil); 250 EXPECT_TRUE([[controller alwaysTranslateButton] superview] == nil);
251 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil); 251 EXPECT_TRUE([[controller neverTranslateButton] superview] != nil);
252 } 252 }
253 253
254 } // namespace 254 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698