OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/glue/plugins/test/plugin_geturl_test.h" | 5 #include "webkit/glue/plugins/test/plugin_geturl_test.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/utf_string_conversions.h" |
12 | 13 |
13 // url for "self". The %22%22 is to make a statement for javascript to | 14 // url for "self". The %22%22 is to make a statement for javascript to |
14 // evaluate and return. | 15 // evaluate and return. |
15 #define SELF_URL "javascript:window.location+\"\"" | 16 #define SELF_URL "javascript:window.location+\"\"" |
16 | 17 |
17 // The identifier for the self url stream. | 18 // The identifier for the self url stream. |
18 #define SELF_URL_STREAM_ID 1 | 19 #define SELF_URL_STREAM_ID 1 |
19 | 20 |
20 // The identifier for the fetched url stream. | 21 // The identifier for the fetched url stream. |
21 #define FETCHED_URL_STREAM_ID 2 | 22 #define FETCHED_URL_STREAM_ID 2 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 default: | 367 default: |
367 SetError("Unexpected NewStream callback"); | 368 SetError("Unexpected NewStream callback"); |
368 break; | 369 break; |
369 } | 370 } |
370 | 371 |
371 if (tests_in_progress_ == 0) | 372 if (tests_in_progress_ == 0) |
372 SignalTestCompleted(); | 373 SignalTestCompleted(); |
373 } | 374 } |
374 | 375 |
375 } // namespace NPAPIClient | 376 } // namespace NPAPIClient |
OLD | NEW |