OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/macros.h" |
6 #include "chrome/browser/apps/app_browsertest_util.h" | 7 #include "chrome/browser/apps/app_browsertest_util.h" |
7 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
8 #include "content/public/test/fake_speech_recognition_manager.h" | 9 #include "content/public/test/fake_speech_recognition_manager.h" |
9 #include "media/base/media_switches.h" | 10 #include "media/base/media_switches.h" |
10 | 11 |
11 class SpeechRecognitionTest : public extensions::PlatformAppBrowserTest { | 12 class SpeechRecognitionTest : public extensions::PlatformAppBrowserTest { |
12 public: | 13 public: |
13 SpeechRecognitionTest() {} | 14 SpeechRecognitionTest() {} |
14 ~SpeechRecognitionTest() override {} | 15 ~SpeechRecognitionTest() override {} |
15 | 16 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 53 } |
53 | 54 |
54 IN_PROC_BROWSER_TEST_F(SpeechRecognitionTest, | 55 IN_PROC_BROWSER_TEST_F(SpeechRecognitionTest, |
55 SpeechFromBackgroundPageWithoutPermission) { | 56 SpeechFromBackgroundPageWithoutPermission) { |
56 EXPECT_FALSE(base::CommandLine::ForCurrentProcess()->HasSwitch( | 57 EXPECT_FALSE(base::CommandLine::ForCurrentProcess()->HasSwitch( |
57 switches::kUseFakeUIForMediaStream)); | 58 switches::kUseFakeUIForMediaStream)); |
58 ASSERT_TRUE( | 59 ASSERT_TRUE( |
59 RunPlatformAppTest("platform_apps/speech/background_page_no_permission")) | 60 RunPlatformAppTest("platform_apps/speech/background_page_no_permission")) |
60 << message_; | 61 << message_; |
61 } | 62 } |
OLD | NEW |