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

Unified Diff: chrome/browser/speech/speech_recognition_bubble_browsertest.cc

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/speech/speech_recognition_bubble_browsertest.cc
diff --git a/chrome/browser/speech/speech_recognition_bubble_browsertest.cc b/chrome/browser/speech/speech_recognition_bubble_browsertest.cc
deleted file mode 100644
index dcb35f4cec13f0405d4232d2f61b27e0103013af..0000000000000000000000000000000000000000
--- a/chrome/browser/speech/speech_recognition_bubble_browsertest.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/speech/speech_recognition_bubble.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/tabs/tab_strip_model.h"
-#include "chrome/test/base/in_process_browser_test.h"
-#include "content/public/browser/render_process_host.h"
-#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/web_contents.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/rect.h"
-
-class SpeechRecognitionBubbleTest : public SpeechRecognitionBubbleDelegate,
- public InProcessBrowserTest {
- public:
- // SpeechRecognitionBubble::Delegate methods.
- virtual void InfoBubbleButtonClicked(
- SpeechRecognitionBubble::Button button) OVERRIDE {
- }
- virtual void InfoBubbleFocusChanged() OVERRIDE {}
-
- protected:
-};
-
-IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, CreateAndDestroy) {
- gfx::Rect element_rect(100, 100, 100, 100);
- content::WebContents* web_contents =
- browser()->tab_strip_model()->GetActiveWebContents();
- scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
- web_contents->GetRenderProcessHost()->GetID(),
- web_contents->GetRenderViewHost()->GetRoutingID(),
- this, element_rect));
- EXPECT_TRUE(bubble.get());
-}
-
-IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, ShowAndDestroy) {
- gfx::Rect element_rect(100, 100, 100, 100);
- content::WebContents* web_contents =
- browser()->tab_strip_model()->GetActiveWebContents();
- scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
- web_contents->GetRenderProcessHost()->GetID(),
- web_contents->GetRenderViewHost()->GetRoutingID(),
- this, element_rect));
- EXPECT_TRUE(bubble.get());
- bubble->Show();
-}
-
-IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, ShowAndHide) {
- gfx::Rect element_rect(100, 100, 100, 100);
- content::WebContents* web_contents =
- browser()->tab_strip_model()->GetActiveWebContents();
- scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
- web_contents->GetRenderProcessHost()->GetID(),
- web_contents->GetRenderViewHost()->GetRoutingID(),
- this, element_rect));
- EXPECT_TRUE(bubble.get());
- bubble->Show();
- bubble->Hide();
-}
-
-IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, ShowAndHideTwice) {
- gfx::Rect element_rect(100, 100, 100, 100);
- content::WebContents* web_contents =
- browser()->tab_strip_model()->GetActiveWebContents();
- scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
- web_contents->GetRenderProcessHost()->GetID(),
- web_contents->GetRenderViewHost()->GetRoutingID(),
- this, element_rect));
- EXPECT_TRUE(bubble.get());
- bubble->Show();
- bubble->Hide();
- bubble->Show();
- bubble->Hide();
-}
« no previous file with comments | « chrome/browser/speech/speech_recognition_bubble.cc ('k') | chrome/browser/speech/speech_recognition_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698