OLD | NEW |
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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/speech/speech_recognition_bubble_controller.h" | 7 #include "chrome/browser/speech/speech_recognition_bubble_controller.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
10 #include "chrome/test/base/browser_with_test_window_test.h" | 10 #include "chrome/test/base/browser_with_test_window_test.h" |
11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
12 #include "content/test/test_browser_thread.h" | 12 #include "content/public/test/test_browser_thread.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
15 | 15 |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 using content::WebContents; | 17 using content::WebContents; |
18 | 18 |
19 class SkBitmap; | 19 class SkBitmap; |
20 | 20 |
21 namespace speech { | 21 namespace speech { |
22 | 22 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 controller_->CreateBubble(kBubbleSessionId, 1, 1, gfx::Rect(1, 1)); | 220 controller_->CreateBubble(kBubbleSessionId, 1, 1, gfx::Rect(1, 1)); |
221 MessageLoop::current()->Run(); | 221 MessageLoop::current()->Run(); |
222 EXPECT_FALSE(cancel_clicked_); | 222 EXPECT_FALSE(cancel_clicked_); |
223 EXPECT_TRUE(try_again_clicked_); | 223 EXPECT_TRUE(try_again_clicked_); |
224 EXPECT_FALSE(focus_changed_); | 224 EXPECT_FALSE(focus_changed_); |
225 controller_->CloseBubble(kBubbleSessionId); | 225 controller_->CloseBubble(kBubbleSessionId); |
226 } | 226 } |
227 | 227 |
228 } // namespace speech | 228 } // namespace speech |
OLD | NEW |