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

Side by Side Diff: chrome/test/ppapi/ppapi_browsertest.cc

Issue 240523002: Add test to make sure if PPB_Audio_Shared::StartThread() works. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/native_client/src/untrusted/irt_stub/thread_creator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/test/ppapi/ppapi_test.h" 5 #include "chrome/test/ppapi/ppapi_test.h"
6 6
7 #include "base/test/test_timeouts.h" 7 #include "base/test/test_timeouts.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(Audio)) { 1174 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(Audio)) {
1175 RUN_AUDIO_SUBTESTS; 1175 RUN_AUDIO_SUBTESTS;
1176 } 1176 }
1177 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, Audio) { 1177 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, Audio) {
1178 RUN_AUDIO_SUBTESTS; 1178 RUN_AUDIO_SUBTESTS;
1179 } 1179 }
1180 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, MAYBE_NONSFI(Audio)) { 1180 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, MAYBE_NONSFI(Audio)) {
1181 RUN_AUDIO_SUBTESTS; 1181 RUN_AUDIO_SUBTESTS;
1182 } 1182 }
1183 1183
1184 #define RUN_AUDIO_THREAD_CREATOR_SUBTESTS \
1185 RunTestViaHTTP( \
1186 LIST_TEST(Audio_AudioThreadCreatorIsRequired) \
1187 LIST_TEST(Audio_AudioThreadCreatorIsCalled) \
1188 )
1189
1190 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, AudioThreadCreator) {
1191 RUN_AUDIO_THREAD_CREATOR_SUBTESTS;
1192 }
1193 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(AudioThreadCreator)) {
1194 RUN_AUDIO_THREAD_CREATOR_SUBTESTS;
1195 }
1196 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, AudioThreadCreator) {
1197 RUN_AUDIO_THREAD_CREATOR_SUBTESTS;
1198 }
1199 // TODO(hidehiko): Enable AudioThreadCreator testing for NonSfi when
1200 // PPB_Audio_Shared::SetThreadFunctions is fixed.
1201 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, DISABLED_AudioThreadCreator) {
1202 RUN_AUDIO_THREAD_CREATOR_SUBTESTS;
1203 }
1204
1184 TEST_PPAPI_IN_PROCESS(View_CreatedVisible); 1205 TEST_PPAPI_IN_PROCESS(View_CreatedVisible);
1185 TEST_PPAPI_OUT_OF_PROCESS(View_CreatedVisible); 1206 TEST_PPAPI_OUT_OF_PROCESS(View_CreatedVisible);
1186 TEST_PPAPI_NACL(View_CreatedVisible); 1207 TEST_PPAPI_NACL(View_CreatedVisible);
1187 // This test ensures that plugins created in a background tab have their 1208 // This test ensures that plugins created in a background tab have their
1188 // initial visibility set to false. We don't bother testing in-process for this 1209 // initial visibility set to false. We don't bother testing in-process for this
1189 // custom test since the out of process code also exercises in-process. 1210 // custom test since the out of process code also exercises in-process.
1190 1211
1191 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View_CreateInvisible) { 1212 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View_CreateInvisible) {
1192 // Make a second tab in the foreground. 1213 // Make a second tab in the foreground.
1193 GURL url = GetTestFileUrl("View_CreatedInvisible"); 1214 GURL url = GetTestFileUrl("View_CreatedInvisible");
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 LIST_TEST(FlashDRM_GetHmonitor) 1385 LIST_TEST(FlashDRM_GetHmonitor)
1365 LIST_TEST(FlashDRM_GetVoucherFile)); 1386 LIST_TEST(FlashDRM_GetVoucherFile));
1366 } 1387 }
1367 1388
1368 TEST_PPAPI_IN_PROCESS(TalkPrivate) 1389 TEST_PPAPI_IN_PROCESS(TalkPrivate)
1369 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) 1390 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate)
1370 1391
1371 #if defined(OS_CHROMEOS) 1392 #if defined(OS_CHROMEOS)
1372 TEST_PPAPI_OUT_OF_PROCESS(OutputProtectionPrivate) 1393 TEST_PPAPI_OUT_OF_PROCESS(OutputProtectionPrivate)
1373 #endif 1394 #endif
OLDNEW
« no previous file with comments | « no previous file | ppapi/native_client/src/untrusted/irt_stub/thread_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698