|
0 |
Index: git/src/kml/engine/feature_view_test.cc
|
|
1 |
===================================================================
|
|
2 |
--- git.orig/src/kml/engine/feature_view_test.cc 2011-03-29 16:41:05.000000000 +0200
|
|
3 |
+++ git/src/kml/engine/feature_view_test.cc 2011-03-29 16:41:22.000000000 +0200
|
|
4 |
@@ -27,7 +27,6 @@
|
|
5 |
|
|
6 |
#include "kml/engine/feature_view.h"
|
|
7 |
#include "gtest/gtest.h"
|
|
8 |
-#include "kml/engine/bbox.h"
|
|
9 |
#include "kml/engine/kml_file.h"
|
|
10 |
|
|
11 |
using kmldom::CoordinatesPtr;
|
|
12 |
@@ -137,18 +136,4 @@
|
|
13 |
ASSERT_NEAR(1494183.4444, lookat->get_range(), 0.0001);
|
|
14 |
}
|
|
15 |
|
|
16 |
-TEST(FeatureViewTest, TestComputeBboxLookAt) {
|
|
17 |
- Bbox bbox(36.59062, 34.98788, -82.00043, -90.06512);
|
|
18 |
- kmldom::LookAtPtr lookat = ComputeBboxLookAt(bbox);
|
|
19 |
- ASSERT_TRUE(lookat);
|
|
20 |
- // These fields are expected to be set to these values.
|
|
21 |
- ASSERT_DOUBLE_EQ(-86.032775, lookat->get_longitude());
|
|
22 |
- ASSERT_DOUBLE_EQ(35.78925, lookat->get_latitude());
|
|
23 |
- ASSERT_DOUBLE_EQ(712928.68603440293, lookat->get_range());
|
|
24 |
- // These fields are not set by ComputeBboxLookAt.
|
|
25 |
- ASSERT_FALSE(lookat->has_altitude());
|
|
26 |
- ASSERT_FALSE(lookat->has_heading());
|
|
27 |
- ASSERT_FALSE(lookat->has_tilt());
|
|
28 |
-}
|
|
29 |
-
|
|
30 |
} // end namespace kmlengine
|