| 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 /* | 5 /* |
| 6 * Copyright (C) 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 : PluginTest(npp, identifier) | 41 : PluginTest(npp, identifier) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 virtual NPError NPP_New(NPMIMEType pluginType, | 46 virtual NPError NPP_New(NPMIMEType pluginType, |
| 47 uint16_t mode, | 47 uint16_t mode, |
| 48 int16_t argc, | 48 int16_t argc, |
| 49 char* argn[], | 49 char* argn[], |
| 50 char* argv[], | 50 char* argv[], |
| 51 NPSavedData* saved) OVERRIDE { | 51 NPSavedData* saved) override { |
| 52 if (!browser->uagent(0)) | 52 if (!browser->uagent(0)) |
| 53 pluginLog(m_npp, "FAILURE: Null user agent returned."); | 53 pluginLog(m_npp, "FAILURE: Null user agent returned."); |
| 54 else | 54 else |
| 55 pluginLog(m_npp, "SUCCESS!"); | 55 pluginLog(m_npp, "SUCCESS!"); |
| 56 | 56 |
| 57 return NPERR_NO_ERROR; | 57 return NPERR_NO_ERROR; |
| 58 } | 58 } |
| 59 | 59 |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 static PluginTest::Register<GetUserAgentWithNullNPPFromNPPNew> getUserAgentWithN
ullNPPFromNPPNew("get-user-agent-with-null-npp-from-npp-new"); | 62 static PluginTest::Register<GetUserAgentWithNullNPPFromNPPNew> getUserAgentWithN
ullNPPFromNPPNew("get-user-agent-with-null-npp-from-npp-new"); |
| OLD | NEW |