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

Unified Diff: chrome/browser/android/vr_shell/ui_element_unittest.cc

Issue 2807293002: VR: Rename ContentRectangle to UiElement (Closed)
Patch Set: Rebase onto Michael's landed GVR types CL. Created 3 years, 8 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 | « chrome/browser/android/vr_shell/ui_element.cc ('k') | chrome/browser/android/vr_shell/ui_elements.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_element_unittest.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements_unittest.cc b/chrome/browser/android/vr_shell/ui_element_unittest.cc
similarity index 95%
rename from chrome/browser/android/vr_shell/ui_elements_unittest.cc
rename to chrome/browser/android/vr_shell/ui_element_unittest.cc
index 56f200e3922b393f829e5eb7f0222c559057ed65..db5cfe5b95099232d397f44a71e72b11d00e7af1 100644
--- a/chrome/browser/android/vr_shell/ui_elements_unittest.cc
+++ b/chrome/browser/android/vr_shell/ui_element_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/android/vr_shell/ui_elements.h"
+#include "chrome/browser/android/vr_shell/ui_element.h"
#include <utility>
@@ -44,7 +44,7 @@ base::TimeDelta usToDelta(uint64_t us) {
} // namespace
TEST(UiElements, AnimateCopyRect) {
- ContentRectangle rect;
+ UiElement rect;
rect.copy_rect = {10, 100, 1000, 10000};
std::unique_ptr<Animation> animation(new Animation(
0, Animation::Property::COPYRECT,
@@ -58,7 +58,7 @@ TEST(UiElements, AnimateCopyRect) {
}
TEST(UiElements, AnimateSize) {
- ContentRectangle rect;
+ UiElement rect;
rect.size = {10, 100, 1};
std::unique_ptr<Animation> animation(
new Animation(0, Animation::Property::SIZE,
@@ -72,7 +72,7 @@ TEST(UiElements, AnimateSize) {
}
TEST(UiElements, AnimateTranslation) {
- ContentRectangle rect;
+ UiElement rect;
rect.translation = {10, 100, 1000};
std::unique_ptr<Animation> animation(
new Animation(0, Animation::Property::TRANSLATION,
@@ -86,7 +86,7 @@ TEST(UiElements, AnimateTranslation) {
}
TEST(UiElements, AnimateRotation) {
- ContentRectangle rect;
+ UiElement rect;
rect.rotation = {10, 100, 1000, 10000};
std::unique_ptr<Animation> animation(new Animation(
0, Animation::Property::ROTATION,
@@ -100,7 +100,7 @@ TEST(UiElements, AnimateRotation) {
}
TEST(UiElements, AnimationHasNoEffectBeforeScheduledStart) {
- ContentRectangle rect;
+ UiElement rect;
std::unique_ptr<Animation> animation(new Animation(
0, Animation::Property::TRANSLATION,
std::unique_ptr<easing::Easing>(new easing::Linear()), {10, 100, 1000},
@@ -111,7 +111,7 @@ TEST(UiElements, AnimationHasNoEffectBeforeScheduledStart) {
}
TEST(UiElements, AnimationPurgedWhenDone) {
- ContentRectangle rect;
+ UiElement rect;
std::unique_ptr<Animation> animation(new Animation(
0, Animation::Property::TRANSLATION,
std::unique_ptr<easing::Easing>(new easing::Linear()), {10, 100, 1000},
@@ -122,7 +122,7 @@ TEST(UiElements, AnimationPurgedWhenDone) {
}
TEST(UiElements, AnimationLinearEasing) {
- ContentRectangle rect;
+ UiElement rect;
std::unique_ptr<Animation> animation(new Animation(
0, Animation::Property::TRANSLATION,
std::unique_ptr<easing::Easing>(new easing::Linear()), {10, 100, 1000},
@@ -137,7 +137,7 @@ TEST(UiElements, AnimationLinearEasing) {
}
TEST(UiElements, AnimationStartFromSpecifiedLocation) {
- ContentRectangle rect;
+ UiElement rect;
std::unique_ptr<Animation> animation(new Animation(
0, Animation::Property::TRANSLATION,
std::unique_ptr<easing::Easing>(new easing::Linear()), {10, 100, 1000},
@@ -155,7 +155,7 @@ TEST(UiElements, AnimationStartFromSpecifiedLocation) {
// Animation 2: ? .......... 50
// Result: 0 ... 10 ... 30 ... 50
TEST(UiElements, AnimationOverlap) {
- ContentRectangle rect;
+ UiElement rect;
std::unique_ptr<Animation> animation(
new Animation(0, Animation::Property::TRANSLATION,
std::unique_ptr<easing::Easing>(new easing::Linear()), {},
« no previous file with comments | « chrome/browser/android/vr_shell/ui_element.cc ('k') | chrome/browser/android/vr_shell/ui_elements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698