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

Unified Diff: webrtc/base/bind_unittest.cc

Issue 2719683002: Rewrite rtc::Bind using variadic templates. (Closed)
Patch Set: Mention where sequence_generator comes from in a comment. Created 3 years, 10 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 | « webrtc/base/bind.h.pump ('k') | webrtc/base/template_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/bind_unittest.cc
diff --git a/webrtc/base/bind_unittest.cc b/webrtc/base/bind_unittest.cc
index be8d79cb6af25cfd62948d7eb4852a41045276ee..33315912bf2d95dbea6d3e1b44660e0c4b360c98 100644
--- a/webrtc/base/bind_unittest.cc
+++ b/webrtc/base/bind_unittest.cc
@@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <type_traits>
+
#include "webrtc/base/bind.h"
#include "webrtc/base/gunit.h"
@@ -71,26 +73,6 @@ int Multiply(int a, int b) { return a * b; }
// Try to catch any problem with scoped_refptr type deduction in rtc::Bind at
// compile time.
-static_assert(
- is_same<
- rtc::remove_reference<const scoped_refptr<RefCountInterface>&>::type,
- const scoped_refptr<RefCountInterface>>::value,
- "const scoped_refptr& should be captured by value");
-
-static_assert(is_same<rtc::remove_reference<const scoped_refptr<F>&>::type,
- const scoped_refptr<F>>::value,
- "const scoped_refptr& should be captured by value");
-
-static_assert(
- is_same<rtc::remove_reference<const int&>::type, const int>::value,
- "const int& should be captured as const int");
-
-static_assert(is_same<rtc::remove_reference<const F&>::type, const F>::value,
- "const F& should be captured as const F");
-
-static_assert(is_same<rtc::remove_reference<F&>::type, F>::value,
- "F& should be captured as F");
-
#define EXPECT_IS_CAPTURED_AS_PTR(T) \
static_assert(is_same<detail::PointerType<T>::type, T*>::value, \
"PointerType")
« no previous file with comments | « webrtc/base/bind.h.pump ('k') | webrtc/base/template_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698