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

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

Issue 2755002: Link with RLZ library from open source repo.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « chrome/browser/rlz/rlz.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/rlz/rlz_unittest.cc
===================================================================
--- chrome/browser/rlz/rlz_unittest.cc (revision 49162)
+++ chrome/browser/rlz/rlz_unittest.cc (working copy)
@@ -25,12 +25,9 @@
} // namespace
TEST(RlzLibTest, RecordProductEvent) {
- if (!RLZTracker::InitRlz(base::DIR_EXE))
- return;
-
DWORD recorded_value = 0;
- EXPECT_TRUE(RLZTracker::RecordProductEvent(RLZTracker::CHROME,
- RLZTracker::CHROME_OMNIBOX, RLZTracker::FIRST_SEARCH));
+ EXPECT_TRUE(RLZTracker::RecordProductEvent(rlz_lib::CHROME,
+ rlz_lib::CHROME_OMNIBOX, rlz_lib::FIRST_SEARCH));
const wchar_t kEvent1[] = L"C1F";
RegKey key1;
EXPECT_TRUE(key1.Open(HKEY_CURRENT_USER, kKeyName, KEY_READ));
@@ -38,8 +35,8 @@
EXPECT_EQ(1, recorded_value);
EXPECT_TRUE(CleanValue(kKeyName, kEvent1));
- EXPECT_TRUE(RLZTracker::RecordProductEvent(RLZTracker::CHROME,
- RLZTracker::CHROME_HOME_PAGE, RLZTracker::SET_TO_GOOGLE));
+ EXPECT_TRUE(RLZTracker::RecordProductEvent(rlz_lib::CHROME,
+ rlz_lib::CHROME_HOME_PAGE, rlz_lib::SET_TO_GOOGLE));
const wchar_t kEvent2[] = L"C2S";
RegKey key2;
EXPECT_TRUE(key2.Open(HKEY_CURRENT_USER, kKeyName, KEY_READ));
@@ -50,18 +47,15 @@
}
TEST(RlzLibTest, CleanProductEvents) {
- if (!RLZTracker::InitRlz(base::DIR_EXE))
- return;
-
DWORD recorded_value = 0;
- EXPECT_TRUE(RLZTracker::RecordProductEvent(RLZTracker::CHROME,
- RLZTracker::CHROME_OMNIBOX, RLZTracker::FIRST_SEARCH));
+ EXPECT_TRUE(RLZTracker::RecordProductEvent(rlz_lib::CHROME,
+ rlz_lib::CHROME_OMNIBOX, rlz_lib::FIRST_SEARCH));
const wchar_t kEvent1[] = L"C1F";
RegKey key1;
EXPECT_TRUE(key1.Open(HKEY_CURRENT_USER, kKeyName, KEY_READ));
EXPECT_TRUE(key1.ReadValueDW(kEvent1, &recorded_value));
EXPECT_EQ(1, recorded_value);
- EXPECT_TRUE(RLZTracker::ClearAllProductEvents(RLZTracker::CHROME));
+ EXPECT_TRUE(RLZTracker::ClearAllProductEvents(rlz_lib::CHROME));
EXPECT_FALSE(CleanValue(kKeyName, kEvent1));
}
« no previous file with comments | « chrome/browser/rlz/rlz.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698