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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/ui_element_unittest.cc

Issue 2834543006: Hook up insecure content warnings for http webVR presentation. (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/vr_shell/ui_element.h" 5 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/android/vr_shell/animation.h" 10 #include "chrome/browser/android/vr_shell/animation.h"
11 #include "chrome/browser/android/vr_shell/easing.h" 11 #include "chrome/browser/android/vr_shell/easing.h"
12 #include "device/vr/vr_types.h" 12 #include "device/vr/vr_types.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 #define EXPECT_VEC3F_EQ(a, b) \ 15 #define EXPECT_VEC3F_EQ(a, b) \
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 rect.animations.emplace_back(std::move(animation2)); 154 rect.animations.emplace_back(std::move(animation2));
155 rect.Animate(usToTicks(55000)); 155 rect.Animate(usToTicks(55000));
156 EXPECT_VEC3F_EQ(rect.translation, gfx::Vector3dF(10, 100, 1000)); 156 EXPECT_VEC3F_EQ(rect.translation, gfx::Vector3dF(10, 100, 1000));
157 rect.Animate(usToTicks(60000)); 157 rect.Animate(usToTicks(60000));
158 EXPECT_VEC3F_EQ(rect.translation, gfx::Vector3dF(30, 300, 3000)); 158 EXPECT_VEC3F_EQ(rect.translation, gfx::Vector3dF(30, 300, 3000));
159 rect.Animate(usToTicks(65000)); 159 rect.Animate(usToTicks(65000));
160 EXPECT_VEC3F_EQ(rect.translation, gfx::Vector3dF(50, 500, 5000)); 160 EXPECT_VEC3F_EQ(rect.translation, gfx::Vector3dF(50, 500, 5000));
161 } 161 }
162 162
163 } // namespace vr_shell 163 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/ui_element.cc ('k') | chrome/browser/android/vr_shell/ui_scene.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698