Commit bccbfc9a authored by yiyaoliu@chromium.org's avatar yiyaoliu@chromium.org

Fix RlzLibTest by setting OmniboxLog.is_popup_open to be true in function SimulateOmniboxUsage.

BUG=369249

Review URL: https://codereview.chromium.org/282293003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271773 0039d316-1c4b-4281-b951-d872f2087c98
parent 75280ad2
......@@ -230,9 +230,12 @@ void RlzLibTest::SetRegistryBrandValue(const wchar_t* name,
#endif
void RlzLibTest::SimulateOmniboxUsage() {
// Set is_popup_open for the OmniboxLog to be true.
OmniboxLog dummy = OmniboxLog(NULL, false, NULL, true, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL);
tracker_.Observe(chrome::NOTIFICATION_OMNIBOX_OPENED_URL,
content::NotificationService::AllSources(),
content::Details<OmniboxLog>(NULL));
content::Details<OmniboxLog>(dummy));
}
void RlzLibTest::SimulateHomepageUsage() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment