diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-16 15:06:26 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-16 15:06:26 +0000 |
commit | d1674cc46eb45a64893012d4f3de28bced1bd1c4 (patch) | |
tree | 2c847cdcc5b4d20698819260f9c83212672e4334 /ppapi/tests/test_file_system.cc | |
parent | e0da8625a9a2ed98612906da021aadd46f12f5da (diff) | |
download | chromium_src-d1674cc46eb45a64893012d4f3de28bced1bd1c4.zip chromium_src-d1674cc46eb45a64893012d4f3de28bced1bd1c4.tar.gz chromium_src-d1674cc46eb45a64893012d4f3de28bced1bd1c4.tar.bz2 |
PPAPI: More test cleanup
This removes the last usage of WaitForResult and force_async_, so removes them
as well.
BUG=
Review URL: https://codereview.chromium.org/14139012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_file_system.cc')
-rw-r--r-- | ppapi/tests/test_file_system.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/tests/test_file_system.cc b/ppapi/tests/test_file_system.cc index 9601f54..9a2d712 100644 --- a/ppapi/tests/test_file_system.cc +++ b/ppapi/tests/test_file_system.cc @@ -18,12 +18,12 @@ bool TestFileSystem::Init() { } void TestFileSystem::RunTests(const std::string& filter) { - RUN_TEST_FORCEASYNC_AND_NOT(Open, filter); - RUN_TEST_FORCEASYNC_AND_NOT(MultipleOpens, filter); + RUN_CALLBACK_TEST(TestFileSystem, Open, filter); + RUN_CALLBACK_TEST(TestFileSystem, MultipleOpens, filter); } std::string TestFileSystem::TestOpen() { - TestCompletionCallback callback(instance_->pp_instance(), force_async_); + TestCompletionCallback callback(instance_->pp_instance(), callback_type()); // Open. pp::FileSystem file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); @@ -46,11 +46,11 @@ std::string TestFileSystem::TestOpen() { std::string TestFileSystem::TestMultipleOpens() { // Should not allow multiple opens, regardless of whether or not the first // open has completed. - TestCompletionCallback callback_1(instance_->pp_instance(), force_async_); + TestCompletionCallback callback_1(instance_->pp_instance(), callback_type()); pp::FileSystem file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); int32_t rv_1 = file_system.Open(1024, callback_1.GetCallback()); - TestCompletionCallback callback_2(instance_->pp_instance(), force_async_); + TestCompletionCallback callback_2(instance_->pp_instance(), callback_type()); callback_2.WaitForResult(file_system.Open(1024, callback_2.GetCallback())); CHECK_CALLBACK_BEHAVIOR(callback_2); // FileSystem should not allow multiple opens. @@ -60,7 +60,7 @@ std::string TestFileSystem::TestMultipleOpens() { CHECK_CALLBACK_BEHAVIOR(callback_1); ASSERT_EQ(PP_OK, callback_1.result()); - TestCompletionCallback callback_3(instance_->pp_instance(), force_async_); + TestCompletionCallback callback_3(instance_->pp_instance(), callback_type()); callback_3.WaitForResult(file_system.Open(1024, callback_3.GetCallback())); CHECK_CALLBACK_BEHAVIOR(callback_3); ASSERT_NE(PP_OK, callback_3.result()); |