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

Unified Diff: base/bind_unittest.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 | « base/bind_internal_win.h ('k') | base/command_line.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_unittest.cc
diff --git a/base/bind_unittest.cc b/base/bind_unittest.cc
index f885403c92dfa68b0ba0a4afe534e4c3d39ad918..5d2a86d10fc3a192e38a3a243f67f1089376abf9 100644
--- a/base/bind_unittest.cc
+++ b/base/bind_unittest.cc
@@ -792,27 +792,6 @@ TEST_F(BindTest, ArgumentCopies) {
//
// TODO(ajwong): Is there actually a way to test this?
-#if defined(OS_WIN)
-int __fastcall FastCallFunc(int n) {
- return n;
-}
-
-int __stdcall StdCallFunc(int n) {
- return n;
-}
-
-// Windows specific calling convention support.
-// - Can bind a __fastcall function.
-// - Can bind a __stdcall function.
-TEST_F(BindTest, WindowsCallingConventions) {
- Callback<int(void)> fastcall_cb = Bind(&FastCallFunc, 1);
- EXPECT_EQ(1, fastcall_cb.Run());
-
- Callback<int(void)> stdcall_cb = Bind(&StdCallFunc, 2);
- EXPECT_EQ(2, stdcall_cb.Run());
-}
-#endif
-
#if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && GTEST_HAS_DEATH_TEST
// Test null callbacks cause a DCHECK.
« no previous file with comments | « base/bind_internal_win.h ('k') | base/command_line.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698