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

Unified Diff: chrome/browser/rlz/rlz_unittest.cc

Issue 282293003: Fix RlzLibTest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/rlz/rlz_unittest.cc
diff --git a/chrome/browser/rlz/rlz_unittest.cc b/chrome/browser/rlz/rlz_unittest.cc
index 2b09959ea3655b32b7f39e266ae38113fe91f03a..81686da19c79f1cde667990efd3917772363781f 100644
--- a/chrome/browser/rlz/rlz_unittest.cc
+++ b/chrome/browser/rlz/rlz_unittest.cc
@@ -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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698