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

Side by Side Diff: chrome/browser/speech/speech_recognition_bubble_browsertest.cc

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/speech/speech_recognition_bubble.h" 6 #include "chrome/browser/speech/speech_recognition_bubble.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 class SpeechRecognitionBubbleTest : public SpeechRecognitionBubbleDelegate, 13 class SpeechRecognitionBubbleTest : public SpeechRecognitionBubbleDelegate,
14 public InProcessBrowserTest { 14 public InProcessBrowserTest {
15 public: 15 public:
16 // SpeechRecognitionBubble::Delegate methods. 16 // SpeechRecognitionBubble::Delegate methods.
17 virtual void InfoBubbleButtonClicked(SpeechRecognitionBubble::Button button) { 17 virtual void InfoBubbleButtonClicked(
18 SpeechRecognitionBubble::Button button) OVERRIDE {
18 } 19 }
19 virtual void InfoBubbleFocusChanged() {} 20 virtual void InfoBubbleFocusChanged() OVERRIDE {}
20 21
21 protected: 22 protected:
22 }; 23 };
23 24
24 IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, CreateAndDestroy) { 25 IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, CreateAndDestroy) {
25 gfx::Rect element_rect(100, 100, 100, 100); 26 gfx::Rect element_rect(100, 100, 100, 100);
26 scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create( 27 scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
27 browser()->tab_strip_model()->GetActiveWebContents(), 28 browser()->tab_strip_model()->GetActiveWebContents(),
28 this, element_rect)); 29 this, element_rect));
29 EXPECT_TRUE(bubble.get()); 30 EXPECT_TRUE(bubble.get());
(...skipping 22 matching lines...) Expand all
52 gfx::Rect element_rect(100, 100, 100, 100); 53 gfx::Rect element_rect(100, 100, 100, 100);
53 scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create( 54 scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
54 browser()->tab_strip_model()->GetActiveWebContents(), 55 browser()->tab_strip_model()->GetActiveWebContents(),
55 this, element_rect)); 56 this, element_rect));
56 EXPECT_TRUE(bubble.get()); 57 EXPECT_TRUE(bubble.get());
57 bubble->Show(); 58 bubble->Show();
58 bubble->Hide(); 59 bubble->Hide();
59 bubble->Show(); 60 bubble->Show();
60 bubble->Hide(); 61 bubble->Hide();
61 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698