| 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) 2012 Apple Inc. All rights reserved. | 6 * Copyright (C) 2012 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 23 matching lines...) Expand all Loading... |
| 34 using namespace std; | 34 using namespace std; |
| 35 | 35 |
| 36 class NPPNewFails : public PluginTest { | 36 class NPPNewFails : public PluginTest { |
| 37 public: | 37 public: |
| 38 NPPNewFails(NPP npp, const string& identifier) | 38 NPPNewFails(NPP npp, const string& identifier) |
| 39 : PluginTest(npp, identifier) | 39 : PluginTest(npp, identifier) |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 virtual NPError NPP_New(NPMIMEType pluginType, | 44 NPError NPP_New(NPMIMEType pluginType, |
| 45 uint16_t mode, | 45 uint16_t mode, |
| 46 int16_t argc, | 46 int16_t argc, |
| 47 char* argn[], | 47 char* argn[], |
| 48 char* argv[], | 48 char* argv[], |
| 49 NPSavedData* saved) override { | 49 NPSavedData* saved) override { |
| 50 return NPERR_GENERIC_ERROR; | 50 return NPERR_GENERIC_ERROR; |
| 51 } | 51 } |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 static PluginTest::Register<NPPNewFails> nppNewFails("npp-new-fails"); | 54 static PluginTest::Register<NPPNewFails> nppNewFails("npp-new-fails"); |
| OLD | NEW |