summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/test/render_view_host_browsertest.cc
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 01:02:07 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 01:02:07 +0000
commitfb534c949f92bec8c6312b58ffcc04c5dc488f2d (patch)
tree84384bdb8b06e62662ce1a5e9619ae455e9a69a8 /chrome/browser/renderer_host/test/render_view_host_browsertest.cc
parentefeb669b05db99c54309771e4884b1a17d604a37 (diff)
downloadchromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.zip
chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.tar.gz
chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.tar.bz2
Rename Real* to Double* in values.* and dependent files
BUG=None TEST=Compiles and passes all tests Review URL: http://codereview.chromium.org/6248026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/test/render_view_host_browsertest.cc')
-rw-r--r--chrome/browser/renderer_host/test/render_view_host_browsertest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/renderer_host/test/render_view_host_browsertest.cc b/chrome/browser/renderer_host/test/render_view_host_browsertest.cc
index 67c0dfb..6e37723 100644
--- a/chrome/browser/renderer_host/test/render_view_host_browsertest.cc
+++ b/chrome/browser/renderer_host/test/render_view_host_browsertest.cc
@@ -117,9 +117,9 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostTest,
{
ExecuteNotificationObserver observer;
ExecuteJavascriptAndGetValue("42.2;", &observer);
- EXPECT_EQ(Value::TYPE_REAL, observer.value()->GetType());
+ EXPECT_EQ(Value::TYPE_DOUBLE, observer.value()->GetType());
double double_value;
- EXPECT_TRUE(observer.value()->GetAsReal(&double_value));
+ EXPECT_TRUE(observer.value()->GetAsDouble(&double_value));
EXPECT_EQ(42.2, double_value);
}
@@ -149,9 +149,9 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostTest,
{
ExecuteNotificationObserver observer;
ExecuteJavascriptAndGetValue("new Date(1);", &observer);
- EXPECT_EQ(Value::TYPE_REAL, observer.value()->GetType());
+ EXPECT_EQ(Value::TYPE_DOUBLE, observer.value()->GetType());
double date_seconds;
- EXPECT_TRUE(observer.value()->GetAsReal(&date_seconds));
+ EXPECT_TRUE(observer.value()->GetAsDouble(&date_seconds));
base::Time time = base::Time::FromDoubleT(date_seconds);
@@ -170,9 +170,9 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostTest,
ExecuteNotificationObserver observer;
ExecuteJavascriptAndGetValue("new Date(Date.UTC(2006, 7, 16, 12, 0, 15));",
&observer);
- EXPECT_EQ(Value::TYPE_REAL, observer.value()->GetType());
+ EXPECT_EQ(Value::TYPE_DOUBLE, observer.value()->GetType());
double date_seconds;
- EXPECT_TRUE(observer.value()->GetAsReal(&date_seconds));
+ EXPECT_TRUE(observer.value()->GetAsDouble(&date_seconds));
base::Time time = base::Time::FromDoubleT(date_seconds);