| 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 "content/test/plugin/plugin_test.h" | 5 #include "content/test/plugin/plugin_test.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "content/test/plugin/npapi_constants.h" | 9 #include "content/test/plugin/npapi_constants.h" |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 return argv[idx]; | 114 return argv[idx]; |
| 115 return NULL; | 115 return NULL; |
| 116 } | 116 } |
| 117 | 117 |
| 118 void PluginTest::SetError(const std::string &msg) { | 118 void PluginTest::SetError(const std::string &msg) { |
| 119 test_status_.append(msg); | 119 test_status_.append(msg); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void PluginTest::ExpectStringLowerCaseEqual(const std::string &val1, | 122 void PluginTest::ExpectStringLowerCaseEqual(const std::string &val1, |
| 123 const std::string &val2) { | 123 const std::string &val2) { |
| 124 if (!LowerCaseEqualsASCII(val1, val2.c_str())) { | 124 if (!base::LowerCaseEqualsASCII(val1, val2.c_str())) { |
| 125 std::string err; | 125 std::string err; |
| 126 err = "Expected Equal for '"; | 126 err = "Expected Equal for '"; |
| 127 err.append(val1); | 127 err.append(val1); |
| 128 err.append("' and '"); | 128 err.append("' and '"); |
| 129 err.append(val2); | 129 err.append(val2); |
| 130 err.append("'"); | 130 err.append("'"); |
| 131 SetError(err); | 131 SetError(err); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // There is no default action | 190 // There is no default action |
| 191 return 0; | 191 return 0; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void PluginTest::URLRedirectNotify(const char* url, int32_t status, | 194 void PluginTest::URLRedirectNotify(const char* url, int32_t status, |
| 195 void* notify_data) { | 195 void* notify_data) { |
| 196 // There is no default action | 196 // There is no default action |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace NPAPIClient | 199 } // namespace NPAPIClient |
| OLD | NEW |