OLD | NEW |
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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
6 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
7 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/ppb_file_ref.h" | 11 #include "ppapi/c/ppb_file_ref.h" |
9 #include "ppapi/proxy/file_chooser_resource.h" | 12 #include "ppapi/proxy/file_chooser_resource.h" |
10 #include "ppapi/proxy/locking_resource_releaser.h" | 13 #include "ppapi/proxy/locking_resource_releaser.h" |
11 #include "ppapi/proxy/plugin_message_filter.h" | 14 #include "ppapi/proxy/plugin_message_filter.h" |
12 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
13 #include "ppapi/proxy/ppapi_proxy_test.h" | 16 #include "ppapi/proxy/ppapi_proxy_test.h" |
14 #include "ppapi/shared_impl/proxy_lock.h" | 17 #include "ppapi/shared_impl/proxy_lock.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 EXPECT_TRUE(CheckParseAcceptType(" app/txt , app/pdf ", | 141 EXPECT_TRUE(CheckParseAcceptType(" app/txt , app/pdf ", |
139 "app/txt", "app/pdf")); | 142 "app/txt", "app/pdf")); |
140 | 143 |
141 // No dot or slash ones should be skipped. | 144 // No dot or slash ones should be skipped. |
142 EXPECT_TRUE(CheckParseAcceptType("foo", NULL, NULL)); | 145 EXPECT_TRUE(CheckParseAcceptType("foo", NULL, NULL)); |
143 EXPECT_TRUE(CheckParseAcceptType("foo,.txt", ".txt", NULL)); | 146 EXPECT_TRUE(CheckParseAcceptType("foo,.txt", ".txt", NULL)); |
144 } | 147 } |
145 | 148 |
146 } // namespace proxy | 149 } // namespace proxy |
147 } // namespace ppapi | 150 } // namespace ppapi |
OLD | NEW |