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/strings/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/browser_tabstrip.h" | 9 #include "chrome/browser/ui/browser_tabstrip.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
11 #include "chrome/test/base/browser_with_test_window_test.h" | 11 #include "chrome/test/base/browser_with_test_window_test.h" |
12 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" |
13 #include "content/public/test/test_browser_thread.h" | 13 #include "content/public/test/test_browser_thread.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 | 16 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 controller_->CreateBubble(kBubbleSessionId, 1, 1, gfx::Rect(1, 1)); | 214 controller_->CreateBubble(kBubbleSessionId, 1, 1, gfx::Rect(1, 1)); |
215 base::MessageLoop::current()->Run(); | 215 base::MessageLoop::current()->Run(); |
216 EXPECT_FALSE(cancel_clicked_); | 216 EXPECT_FALSE(cancel_clicked_); |
217 EXPECT_TRUE(try_again_clicked_); | 217 EXPECT_TRUE(try_again_clicked_); |
218 EXPECT_FALSE(focus_changed_); | 218 EXPECT_FALSE(focus_changed_); |
219 controller_->CloseBubble(); | 219 controller_->CloseBubble(); |
220 } | 220 } |
221 | 221 |
222 } // namespace speech | 222 } // namespace speech |
OLD | NEW |