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

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: Fixing android build 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
« no previous file with comments | « Source/platform/geometry/FloatBoxTest.cpp ('k') | Source/platform/geometry/FloatBoxTestHelpers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/platform/geometry/FloatBoxTest.cpp ('k') | Source/platform/geometry/FloatBoxTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698