Index: mojo/public/tests/test_support_export.h |
diff --git a/mojo/public/tests/test_support_export.h b/mojo/public/tests/test_support_export.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..962e0962d2e4bfdfa89a3c2da689438e09974957 |
--- /dev/null |
+++ b/mojo/public/tests/test_support_export.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MOJO_PUBLIC_TESTS_TEST_SUPPORT_EXPORT_H_ |
+#define MOJO_PUBLIC_TESTS_TEST_SUPPORT_EXPORT_H_ |
+ |
+#if defined(WIN32) |
+ |
+#if defined(MOJO_TEST_SUPPORT_IMPLEMENTATION) |
+#define MOJO_TEST_SUPPORT_EXPORT __declspec(dllexport) |
+#else |
+#define MOJO_TEST_SUPPORT_EXPORT __declspec(dllimport) |
+#endif |
+ |
+#else // !defined(WIN32) |
+ |
+#if defined(MOJO_TEST_SUPPORT_IMPLEMENTATION) |
+#define MOJO_TEST_SUPPORT_EXPORT __attribute__((visibility("default"))) |
+#else |
+#define MOJO_TEST_SUPPORT_EXPORT |
+#endif |
+ |
+#endif // defined(WIN32) |
+ |
+#endif // MOJO_PUBLIC_TESTS_TEST_SUPPORT_EXPORT_H_ |