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

Unified Diff: Source/core/platform/animation/TimingFunction.h

Issue 60323005: Adding operator== to TimingFunctionTestHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + Fixing "control reaches end of non-void function". Created 7 years, 1 month 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 | « no previous file | Source/core/platform/animation/TimingFunctionTestHelper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/animation/TimingFunction.h
diff --git a/Source/core/platform/animation/TimingFunction.h b/Source/core/platform/animation/TimingFunction.h
index 3394fffe9662c672d1c7ac6b5abf24c77401c332..51e4a9e15e0a5344f2f0d8cb4443db0f3f8281e6 100644
--- a/Source/core/platform/animation/TimingFunction.h
+++ b/Source/core/platform/animation/TimingFunction.h
@@ -88,7 +88,7 @@ private:
// Forward declare so we can friend it below. Don't use in production code!
-class ChainedTimingFunctionPrinter;
+class ChainedTimingFunctionTestHelper;
class CubicBezierTimingFunction : public TimingFunction {
public:
@@ -265,7 +265,7 @@ private:
: m_min(min)
, m_max(max)
, m_timingFunction(timingFunction)
- { }
+ { ASSERT(timingFunction); }
double max() const { return m_max; }
double evaluate(double fraction, double accuracy) const
@@ -281,9 +281,9 @@ private:
double m_max;
RefPtr<TimingFunction> m_timingFunction;
- // Allow printing of our segments. Can be removed once
+ // Allow PrintTo/operator== of the segments. Can be removed once
// ChainedTimingFunction has a public API for segments.
- friend class ChainedTimingFunctionPrinter;
+ friend class ChainedTimingFunctionTestHelper;
};
ChainedTimingFunction()
@@ -294,9 +294,9 @@ private:
Vector<Segment> m_segments;
- // Allow printing of our segments. Can be removed once
+ // Allow PrintTo/operator== of the segments. Can be removed once
// ChainedTimingFunction has a public API for segments.
- friend class ChainedTimingFunctionPrinter;
+ friend class ChainedTimingFunctionTestHelper;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/platform/animation/TimingFunctionTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698