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

Side by Side Diff: chrome/browser/android/vr_shell/ui_scene_unittest.cc

Issue 2834543006: Hook up insecure content warnings for http webVR presentation. (Closed)
Patch Set: rebase Created 3 years, 7 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_scene.h" 5 #include "chrome/browser/android/vr_shell/ui_scene.h"
6 6
7 #define _USE_MATH_DEFINES // For M_PI in MSVC. 7 #define _USE_MATH_DEFINES // For M_PI in MSVC.
8 #include <cmath> 8 #include <cmath>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/android/vr_shell/animation.h" 14 #include "chrome/browser/android/vr_shell/animation.h"
15 #include "chrome/browser/android/vr_shell/easing.h" 15 #include "chrome/browser/android/vr_shell/easing.h"
16 #include "chrome/browser/android/vr_shell/ui_element.h" 16 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h"
17 #include "device/vr/vr_math.h" 17 #include "device/vr/vr_math.h"
18 #include "device/vr/vr_types.h" 18 #include "device/vr/vr_types.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 #define TOLERANCE 0.0001 21 #define TOLERANCE 0.0001
22 22
23 #define EXPECT_VEC3F_NEAR(a, b) \ 23 #define EXPECT_VEC3F_NEAR(a, b) \
24 EXPECT_NEAR(a.x(), b.x(), TOLERANCE); \ 24 EXPECT_NEAR(a.x(), b.x(), TOLERANCE); \
25 EXPECT_NEAR(a.y(), b.y(), TOLERANCE); \ 25 EXPECT_NEAR(a.y(), b.y(), TOLERANCE); \
26 EXPECT_NEAR(a.z(), b.z(), TOLERANCE); 26 EXPECT_NEAR(a.z(), b.z(), TOLERANCE);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 {XAnchoring::XNONE, YAnchoring::YTOP, 0, 2}, 222 {XAnchoring::XNONE, YAnchoring::YTOP, 0, 2},
223 {XAnchoring::XNONE, YAnchoring::YBOTTOM, 0, -2}, 223 {XAnchoring::XNONE, YAnchoring::YBOTTOM, 0, -2},
224 {XAnchoring::XLEFT, YAnchoring::YTOP, -2, 2}, 224 {XAnchoring::XLEFT, YAnchoring::YTOP, -2, 2},
225 }; 225 };
226 226
227 INSTANTIATE_TEST_CASE_P(AnchoringTestCases, 227 INSTANTIATE_TEST_CASE_P(AnchoringTestCases,
228 AnchoringTest, 228 AnchoringTest,
229 ::testing::ValuesIn(anchoring_test_cases)); 229 ::testing::ValuesIn(anchoring_test_cases));
230 230
231 } // namespace vr_shell 231 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.cc ('k') | chrome/browser/android/vr_shell/vr_gl_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698