Index: Source/platform/geometry/FloatBoxTestHelpers.h |
diff --git a/Source/modules/mediastream/NavigatorUserMediaErrorCallback.h b/Source/platform/geometry/FloatBoxTestHelpers.h |
similarity index 70% |
copy from Source/modules/mediastream/NavigatorUserMediaErrorCallback.h |
copy to Source/platform/geometry/FloatBoxTestHelpers.h |
index fd79f57060f4b38278ffd7fc97c27c886dd54e19..06a8557737f826532349d3b7b1cb68ef2d3f1eb9 100644 |
--- a/Source/modules/mediastream/NavigatorUserMediaErrorCallback.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 |
@@ -22,19 +22,18 @@ |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
Ian Vollick
2014/06/18 15:38:06
Include guards?
awoloszyn
2014/06/18 18:31:08
Done.
|
-#ifndef NavigatorUserMediaErrorCallback_h |
-#define NavigatorUserMediaErrorCallback_h |
- |
-#include "modules/mediastream/NavigatorUserMediaError.h" |
- |
+#include <gtest/gtest.h> |
namespace WebCore { |
+class FloatBox; |
-class NavigatorUserMediaErrorCallback { |
-public: |
- virtual ~NavigatorUserMediaErrorCallback() { } |
- virtual void handleEvent(NavigatorUserMediaError*) = 0; |
-}; |
+void PrintTo(const FloatBox&, ::std::ostream*); |
+bool ApproximatelyEqual(const float&, const float&); |
-} // namespace WebCore |
+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&); |
+} |
+} |
Ian Vollick
2014/06/18 15:38:06
Nit: pls add a comment labeling which ns these bra
awoloszyn
2014/06/18 18:31:08
Done.
|
-#endif // NavigatorUserMediaErrorCallback_h |