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

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

Issue 2698623007: Change how the VR reticle distance is determined. (Closed)
Patch Set: Change background distance multplier to 1.414; move Reload UI button out of the floor. Created 3 years, 10 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_scene.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_scene_unittest.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene_unittest.cc b/chrome/browser/android/vr_shell/ui_scene_unittest.cc
index 02823d756a64385ec67a20f50c0f63ea90aeef29..dd8ccb9fef24df79a73bdf114ef96c7e05e3b5d2 100644
--- a/chrome/browser/android/vr_shell/ui_scene_unittest.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_unittest.cc
@@ -69,35 +69,6 @@ TEST(UiScene, AddRemoveElements) {
EXPECT_EQ(scene.GetUiElements().size(), 0u);
}
-TEST(UiScene, AddRemoveContentQuad) {
- UiScene scene;
-
- EXPECT_EQ(scene.GetContentQuad(), nullptr);
-
- base::DictionaryValue dict;
- dict.SetInteger("id", 0);
- dict.SetInteger("fillType", Fill::CONTENT);
- scene.AddUiElementFromDict(dict);
- EXPECT_NE(scene.GetContentQuad(), nullptr);
-
- dict.SetInteger("fillType", Fill::SPRITE);
- std::unique_ptr<base::DictionaryValue> copy_rect(new base::DictionaryValue);
- copy_rect->SetInteger("x", 100);
- copy_rect->SetInteger("y", 101);
- copy_rect->SetInteger("width", 102);
- copy_rect->SetInteger("height", 103);
- dict.Set("copyRect", std::move(copy_rect));
- scene.UpdateUiElementFromDict(dict);
- EXPECT_EQ(scene.GetContentQuad(), nullptr);
-
- dict.SetInteger("fillType", Fill::CONTENT);
- scene.UpdateUiElementFromDict(dict);
- EXPECT_NE(scene.GetContentQuad(), nullptr);
-
- scene.RemoveUiElement(0);
- EXPECT_EQ(scene.GetContentQuad(), nullptr);
-}
-
TEST(UiScene, AddRemoveAnimations) {
UiScene scene;
addElement(&scene, 0);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698