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

Side by Side Diff: Source/platform/animation/TimingFunctionTest.cpp

Issue 458313005: Cleanup namespace usage from animation to exported in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup namespace usage from animation to exported in platform/ Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/platform/audio/AudioBus.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 << " (" << a.second->toString().latin1().data() << ")" \ 45 << " (" << a.second->toString().latin1().data() << ")" \
46 << " == " \ 46 << " == " \
47 << b.first \ 47 << b.first \
48 << " (" << b.second->toString().latin1().data() << ")" \ 48 << " (" << b.second->toString().latin1().data() << ")" \
49 << "\n"; 49 << "\n";
50 50
51 namespace blink { 51 namespace blink {
52 52
53 namespace { 53 namespace {
54 54
55 using namespace blink;
56
57 class TimingFunctionTest : public ::testing::Test { 55 class TimingFunctionTest : public ::testing::Test {
58 public: 56 public:
59 void notEqualHelperLoop(Vector<std::pair<std::string, RefPtr<TimingFunction> > >& v) 57 void notEqualHelperLoop(Vector<std::pair<std::string, RefPtr<TimingFunction> > >& v)
60 { 58 {
61 for (size_t i = 0; i < v.size(); ++i) { 59 for (size_t i = 0; i < v.size(); ++i) {
62 for (size_t j = 0; j < v.size(); ++j) { 60 for (size_t j = 0; j < v.size(); ++j) {
63 if (i == j) 61 if (i == j)
64 continue; 62 continue;
65 EXPECT_NE_WITH_MESSAGE(v[i], v[j]); 63 EXPECT_NE_WITH_MESSAGE(v[i], v[j]);
66 } 64 }
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 EXPECT_EQ(0.50, stepsTimingCustomEnd->evaluate(0.74, 0)); 410 EXPECT_EQ(0.50, stepsTimingCustomEnd->evaluate(0.74, 0));
413 EXPECT_EQ(0.75, stepsTimingCustomEnd->evaluate(0.75, 0)); 411 EXPECT_EQ(0.75, stepsTimingCustomEnd->evaluate(0.75, 0));
414 EXPECT_EQ(0.75, stepsTimingCustomEnd->evaluate(0.99, 0)); 412 EXPECT_EQ(0.75, stepsTimingCustomEnd->evaluate(0.99, 0));
415 EXPECT_EQ(1.00, stepsTimingCustomEnd->evaluate(1.00, 0)); 413 EXPECT_EQ(1.00, stepsTimingCustomEnd->evaluate(1.00, 0));
416 EXPECT_EQ(1.00, stepsTimingCustomEnd->evaluate(2.00, 0)); 414 EXPECT_EQ(1.00, stepsTimingCustomEnd->evaluate(2.00, 0));
417 } 415 }
418 416
419 } // namespace 417 } // namespace
420 418
421 } // namespace blink 419 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/platform/audio/AudioBus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698