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

Unified Diff: Source/platform/geometry/FloatBoxTestHelpers.h

Issue 328333003: Adding Blink-side 3d Box and Bounds calculations to TransformOperations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
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

Powered by Google App Engine
This is Rietveld 408576698