OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> |
| 6 |
5 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
6 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
7 #include "ppapi/c/ppb_file_io.h" | 9 #include "ppapi/c/ppb_file_io.h" |
8 #include "ppapi/c/ppb_file_ref.h" | 10 #include "ppapi/c/ppb_file_ref.h" |
9 #include "ppapi/c/ppb_file_system.h" | 11 #include "ppapi/c/ppb_file_system.h" |
10 #include "ppapi/proxy/file_system_resource.h" | 12 #include "ppapi/proxy/file_system_resource.h" |
11 #include "ppapi/proxy/locking_resource_releaser.h" | 13 #include "ppapi/proxy/locking_resource_releaser.h" |
12 #include "ppapi/proxy/plugin_message_filter.h" | 14 #include "ppapi/proxy/plugin_message_filter.h" |
13 #include "ppapi/proxy/ppapi_message_utils.h" | 15 #include "ppapi/proxy/ppapi_message_utils.h" |
14 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 // There is kQuotaRequestAmount1 of quota left, and a request for it should | 362 // There is kQuotaRequestAmount1 of quota left, and a request for it should |
361 // succeed immediately. | 363 // succeed immediately. |
362 result = file_system_api->RequestQuota( | 364 result = file_system_api->RequestQuota( |
363 kQuotaRequestAmount1, | 365 kQuotaRequestAmount1, |
364 base::Bind(&MockRequestQuotaCallback::Callback, base::Unretained(&cb1))); | 366 base::Bind(&MockRequestQuotaCallback::Callback, base::Unretained(&cb1))); |
365 ASSERT_EQ(kQuotaRequestAmount1, result); | 367 ASSERT_EQ(kQuotaRequestAmount1, result); |
366 } | 368 } |
367 | 369 |
368 } // namespace proxy | 370 } // namespace proxy |
369 } // namespace ppapi | 371 } // namespace ppapi |
OLD | NEW |