Index: Source/platform/geometry/FloatBoxTestHelpers.h |
diff --git a/Source/modules/mediastream/NavigatorUserMediaSuccessCallback.h b/Source/platform/geometry/FloatBoxTestHelpers.h |
similarity index 67% |
copy from Source/modules/mediastream/NavigatorUserMediaSuccessCallback.h |
copy to Source/platform/geometry/FloatBoxTestHelpers.h |
index 3863424b68745012a55a82bb101df77770246e1e..074d48c27b34c7070ce2143eccbe073c1c7c7b27 100644 |
--- a/Source/modules/mediastream/NavigatorUserMediaSuccessCallback.h |
+++ b/Source/platform/geometry/FloatBoxTestHelpers.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2011 Google Inc. All rights reserved. |
+ * Copyright (C) 2014 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -21,20 +21,22 @@ |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+#ifndef FloatBoxTestHelpers_h |
+#define FloatBoxTestHelpers_h |
-#ifndef NavigatorUserMediaSuccessCallback_h |
-#define NavigatorUserMediaSuccessCallback_h |
- |
+#include <gtest/gtest.h> |
namespace WebCore { |
+class FloatBox; |
-class MediaStream; |
- |
-class NavigatorUserMediaSuccessCallback { |
-public: |
- virtual ~NavigatorUserMediaSuccessCallback() { } |
- virtual void handleEvent(MediaStream*) = 0; |
-}; |
+void PrintTo(const FloatBox&, ::std::ostream*); |
+bool ApproximatelyEqual(const float&, const float&); |
+namespace FloatBoxTest { |
+bool ApproximatelyEqual(const float&, const float&); |
+bool ApproximatelyEqual(const FloatBox&, const FloatBox&); |
+::testing::AssertionResult AssertAlmostEqual(const char*, const char*, const FloatBox&, const FloatBox&); |
+::testing::AssertionResult AssertContains(const char*, const char*, const FloatBox&, const FloatBox&); |
+} // namespace FloatBoxTest |
} // namespace WebCore |
-#endif // NavigatorUserMediaSuccessCallback_h |
+#endif // FloatBoxTestHelpers_h |