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

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

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased from master. Created 8 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/speech/speech_input_bubble.h"
7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
9 #include "chrome/test/base/in_process_browser_test.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/gfx/rect.h"
12
13 class SpeechInputBubbleTest : public SpeechInputBubbleDelegate,
14 public InProcessBrowserTest {
15 public:
16 // SpeechInputBubble::Delegate methods.
17 virtual void InfoBubbleButtonClicked(SpeechInputBubble::Button button) {}
18 virtual void InfoBubbleFocusChanged() {}
19
20 protected:
21 };
22
23 IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, CreateAndDestroy) {
24 gfx::Rect element_rect(100, 100, 100, 100);
25 scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
26 browser()->GetSelectedWebContents(), this, element_rect));
27 EXPECT_TRUE(bubble.get());
28 }
29
30 IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, ShowAndDestroy) {
31 gfx::Rect element_rect(100, 100, 100, 100);
32 scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
33 browser()->GetSelectedWebContents(), this, element_rect));
34 EXPECT_TRUE(bubble.get());
35 bubble->Show();
36 }
37
38 IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, ShowAndHide) {
39 gfx::Rect element_rect(100, 100, 100, 100);
40 scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
41 browser()->GetSelectedWebContents(), this, element_rect));
42 EXPECT_TRUE(bubble.get());
43 bubble->Show();
44 bubble->Hide();
45 }
46
47 IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, ShowAndHideTwice) {
48 gfx::Rect element_rect(100, 100, 100, 100);
49 scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
50 browser()->GetSelectedWebContents(), this, element_rect));
51 EXPECT_TRUE(bubble.get());
52 bubble->Show();
53 bubble->Hide();
54 bubble->Show();
55 bubble->Hide();
56 }
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_bubble.cc ('k') | chrome/browser/speech/speech_input_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698