Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: snapshot/crashpad_info_client_options_test_module.cc

Issue 1052813002: win: make CrashpadInfo retrievable (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: more fixes Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/crashpad_info_client_options_test.cc ('k') | snapshot/mac/crashpad_info_client_options.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/crashpad_info_client_options_test_module.cc
diff --git a/snapshot/mac/crashpad_info_client_options_test_module.cc b/snapshot/crashpad_info_client_options_test_module.cc
similarity index 83%
rename from snapshot/mac/crashpad_info_client_options_test_module.cc
rename to snapshot/crashpad_info_client_options_test_module.cc
index be5f00a2abdd104d4b3c67fc5c1e63ce7c6e634d..357d35e6596c95fef3186cfa97dd6db8f5f8c514 100644
--- a/snapshot/mac/crashpad_info_client_options_test_module.cc
+++ b/snapshot/crashpad_info_client_options_test_module.cc
@@ -12,9 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "build/build_config.h"
#include "client/crashpad_info.h"
+#if defined(OS_POSIX)
#define EXPORT __attribute__((visibility("default")))
+#elif defined(OS_WIN)
+#include <windows.h>
+#define EXPORT __declspec(dllexport)
+#endif // OS_POSIX
extern "C" {
@@ -33,3 +39,9 @@ EXPORT crashpad::CrashpadInfo* TestModule_GetCrashpadInfo() {
}
} // extern "C"
+
+#if defined(OS_WIN)
+BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) {
+ return TRUE;
+}
+#endif // OS_WIN
« no previous file with comments | « snapshot/crashpad_info_client_options_test.cc ('k') | snapshot/mac/crashpad_info_client_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698