summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/google_chrome_distribution_unittest.cc
diff options
context:
space:
mode:
authorrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 17:01:35 +0000
committerrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 17:01:35 +0000
commit6b5f21d8a7f8c0b6b4a689f32afe62fe64d0fa04 (patch)
treebd2101b86b5f3ee1f3f27bd354880de932e668b4 /chrome/installer/util/google_chrome_distribution_unittest.cc
parentaff38a3e93fb5a63cd9eda1b2995996f16c713ac (diff)
downloadchromium_src-6b5f21d8a7f8c0b6b4a689f32afe62fe64d0fa04.zip
chromium_src-6b5f21d8a7f8c0b6b4a689f32afe62fe64d0fa04.tar.gz
chromium_src-6b5f21d8a7f8c0b6b4a689f32afe62fe64d0fa04.tar.bz2
Review URL: http://codereview.chromium.org/62160
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13600 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/google_chrome_distribution_unittest.cc')
-rw-r--r--chrome/installer/util/google_chrome_distribution_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/installer/util/google_chrome_distribution_unittest.cc b/chrome/installer/util/google_chrome_distribution_unittest.cc
index bd13cdc..cca9e52 100644
--- a/chrome/installer/util/google_chrome_distribution_unittest.cc
+++ b/chrome/installer/util/google_chrome_distribution_unittest.cc
@@ -194,7 +194,8 @@ TEST_F(GoogleChromeDistributionTest, TestExtractUninstallMetrics) {
" \"last_observed_running_time_sec\": \"1235341183\","
" \"launch_count\": \"11\","
" \"page_load_count\": \"68\","
- " \"uptime_sec\": \"809\"\n"
+ " \"uptime_sec\": \"809\","
+ " \"installation_date2\": \"1235341141\"\n"
" },\n"
" \"blah\": {\n"
" \"this_sentence_is_true\": false\n"
@@ -207,11 +208,11 @@ TEST_F(GoogleChromeDistributionTest, TestExtractUninstallMetrics) {
// The URL string we expect to be generated from said make-believe file.
std::wstring expected_url_string(
+ L"&installation_date2=1235341141"
L"&last_launch_time_sec=1235341118"
L"&last_observed_running_time_sec=1235341183"
- L"&launch_count=11&page_load_count=68&uptime_sec=809&");
- expected_url_string += installer_util::kUninstallInstallationDate;
- expected_url_string += L"=1234567890";
+ L"&launch_count=11&page_load_count=68"
+ L"&uptime_sec=809");
JSONStringValueSerializer json_deserializer(pref_string);
std::string error_message;
@@ -294,4 +295,3 @@ TEST(MasterPreferences, ParseDistroParams) {
EXPECT_TRUE(result & installer_util::MASTER_PROFILE_ALT_SHORTCUT_TXT);
EXPECT_TRUE(file_util::Delete(prefs, false));
}
-