~ubuntu-branches/ubuntu/precise/wine1.3/precise

« back to all changes in this revision

Viewing changes to dlls/quartz/tests/avisplitter.c

  • Committer: Package Import Robot
  • Author(s): Scott Ritchie
  • Date: 2012-01-17 09:00:34 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120117090034-eyhpp02jawlvrrkc
Tags: 1.3.37-0ubuntu1
* New upstream release
  - Many changes
* Convert to 3.0 source format
* debian/control:
  - Remove pre-multiarch amd64 build depends
  - Remove quilt build depends
  - Recommend proper gecko versions
* debian/rules:
  - Remove manual dh_quilt patch and unpatch
  - No need to uuencode/uudecode anymore with new source format

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
static const char afile[] = "test.avi";
174
174
 
175
175
/* This test doesn't use the quartz filtergraph because it makes it impossible
176
 
 * to be certain that a thread is really one owned by the avi splitter
177
 
 * A lot of the decoder filters will also have their own thread, and windows'
 
176
 * to be certain that a thread is really one owned by the avi splitter.
 
177
 * A lot of the decoder filters will also have their own thread, and Windows'
178
178
 * filtergraph has a separate thread for start/stop/seeking requests.
179
 
 * By avoiding the filtergraph all together and connecting streams directly to
 
179
 * By avoiding the filtergraph altogether and connecting streams directly to
180
180
 * the null renderer I am sure that this is not the case here.
181
181
 */
182
182
static void test_threads(void)
200
200
        return;
201
201
    }
202
202
 
203
 
    /* Before doing anything (number of threads at the start differs per OS) */
 
203
    /* Before doing anything (the thread count at the start differs per OS) */
204
204
    baselevel = count_threads();
205
205
 
206
206
    file = CreateFileW(wfile, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE,
280
280
 
281
281
    curlevel = count_threads();
282
282
    ok(curlevel == baselevel,
283
 
        "Amount of threads should be %d not %d\n", baselevel, curlevel);
 
283
        "The thread count should be %d not %d\n", baselevel, curlevel);
284
284
 
285
285
    hr = IPin_Connect(filepin, avipin, NULL);
286
286
    ok(hr == S_OK, "Could not connect: %08x\n", hr);
290
290
    expected = 1 + baselevel;
291
291
    curlevel = count_threads();
292
292
    ok(curlevel == expected,
293
 
        "Amount of threads should be %d not %d\n", expected, curlevel);
 
293
        "The thread count should be %d not %d\n", expected, curlevel);
294
294
 
295
295
    IUnknown_Release(avipin);
296
296
    avipin = NULL;
346
346
    if (hr != S_OK)
347
347
        goto fail2;
348
348
    /* At this point there is a minimalistic connected avi splitter that can
349
 
     * Be used for all sorts of source filter tests, however that still needs
 
349
     * be used for all sorts of source filter tests. However that still needs
350
350
     * to be written at a later time.
351
351
     *
352
352
     * Interesting tests:
366
366
 
367
367
    curlevel = count_threads();
368
368
    ok(curlevel == expected,
369
 
        "Amount of threads should be %d not %d\n", expected, curlevel);
 
369
        "The thread count should be %d not %d\n", expected, curlevel);
370
370
 
371
371
    IBaseFilter_Pause(pavi);
372
372
    IBaseFilter_Pause(preader);
442
442
    curlevel = count_threads();
443
443
    todo_wine
444
444
    ok(curlevel == baselevel,
445
 
        "Amount of threads should be %d not %d\n", baselevel, curlevel);
 
445
        "The thread count should be %d not %d\n", baselevel, curlevel);
446
446
}
447
447
 
448
448
START_TEST(avisplitter)