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

Side by Side Diff: chrome/browser/ui/cocoa/translate/translate_bubble_controller_unittest.mm

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/ui/cocoa/translate/translate_bubble_controller.h" 5 #include "chrome/browser/ui/cocoa/translate/translate_bubble_controller.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #import "chrome/browser/ui/browser.h" 8 #import "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 BrowserWindowController* bwc = 46 BrowserWindowController* bwc =
47 [BrowserWindowController browserWindowControllerForWindow:nativeWindow]; 47 [BrowserWindowController browserWindowControllerForWindow:nativeWindow];
48 content::WebContents* webContents = AppendToTabStrip(); 48 content::WebContents* webContents = AppendToTabStrip();
49 translate::TranslateStep step = translate::TRANSLATE_STEP_BEFORE_TRANSLATE; 49 translate::TranslateStep step = translate::TRANSLATE_STEP_BEFORE_TRANSLATE;
50 50
51 TranslateBubbleController* bubble = [bwc translateBubbleController]; 51 TranslateBubbleController* bubble = [bwc translateBubbleController];
52 EXPECT_FALSE(bubble); 52 EXPECT_FALSE(bubble);
53 53
54 [bwc showTranslateBubbleForWebContents:webContents 54 [bwc showTranslateBubbleForWebContents:webContents
55 step:step 55 step:step
56 errorType:TranslateErrors::NONE]; 56 errorType:translate::TranslateErrors::NONE];
57 bubble = [bwc translateBubbleController]; 57 bubble = [bwc translateBubbleController];
58 EXPECT_TRUE(bubble); 58 EXPECT_TRUE(bubble);
59 InfoBubbleWindow* window = (InfoBubbleWindow*)[bubble window]; 59 InfoBubbleWindow* window = (InfoBubbleWindow*)[bubble window];
60 [window setAllowedAnimations:info_bubble::kAnimateNone]; 60 [window setAllowedAnimations:info_bubble::kAnimateNone];
61 61
62 [bubble close]; 62 [bubble close];
63 chrome::testing::NSRunLoopRunAllPending(); 63 chrome::testing::NSRunLoopRunAllPending();
64 bubble = [bwc translateBubbleController]; 64 bubble = [bwc translateBubbleController];
65 EXPECT_FALSE(bubble); 65 EXPECT_FALSE(bubble);
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698