/external/chromium_org/rlz/lib/ |
D | rlz_lib_test.cc | 41 : public rlz_lib::MachineDealCode 47 return rlz_lib::MachineDealCode::Clear(); in Clear() 64 EXPECT_TRUE(rlz_lib::ClearAllProductEvents(rlz_lib::TOOLBAR_NOTIFIER)); in TEST_F() 65 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() 66 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::SET_TO_GOOGLE)); in TEST_F() 67 EXPECT_TRUE(rlz_lib::GetProductEventsAsCgi(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() 71 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() 72 rlz_lib::IE_HOME_PAGE, rlz_lib::INSTALL)); in TEST_F() 73 EXPECT_TRUE(rlz_lib::GetProductEventsAsCgi(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() 77 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() [all …]
|
D | financial_ping_test.cc | 64 std::string brand_string = rlz_lib::SupplementaryBranding::GetBrand(); in TEST_F() 68 EXPECT_TRUE(rlz_lib::MachineDealCode::Set("dcc_value")); in TEST_F() 74 EXPECT_TRUE(rlz_lib::SetAccessPointRlz(rlz_lib::IETB_SEARCH_BOX, in TEST_F() 77 EXPECT_TRUE(rlz_lib::ClearAllProductEvents(rlz_lib::TOOLBAR_NOTIFIER)); in TEST_F() 78 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() 79 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::SET_TO_GOOGLE)); in TEST_F() 80 EXPECT_TRUE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, in TEST_F() 81 rlz_lib::IE_HOME_PAGE, rlz_lib::INSTALL)); in TEST_F() 83 rlz_lib::AccessPoint points[] = in TEST_F() 84 {rlz_lib::IETB_SEARCH_BOX, rlz_lib::NO_ACCESS_POINT, in TEST_F() [all …]
|
D | lib_values_unittest.cc | 13 rlz_lib::SetExpectedAssertion("GetAccessPointFromName: point is NULL"); in TEST() 14 EXPECT_FALSE(rlz_lib::GetAccessPointFromName("", NULL)); in TEST() 15 rlz_lib::SetExpectedAssertion(""); in TEST() 17 rlz_lib::AccessPoint point; in TEST() 18 EXPECT_FALSE(rlz_lib::GetAccessPointFromName(NULL, &point)); in TEST() 19 EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point); in TEST() 21 EXPECT_TRUE(rlz_lib::GetAccessPointFromName("", &point)); in TEST() 22 EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point); in TEST() 24 EXPECT_FALSE(rlz_lib::GetAccessPointFromName("i1", &point)); in TEST() 25 EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point); in TEST() [all …]
|
D | string_utils_unittest.cc | 17 rlz_lib::SetExpectedAssertion(""); in TEST() 21 EXPECT_FALSE(rlz_lib::IsAscii(bad_letters[i])); in TEST() 25 EXPECT_TRUE(rlz_lib::IsAscii(good_letters[i])); in TEST() 29 rlz_lib::SetExpectedAssertion("HexStringToInteger: text is NULL."); in TEST() 30 EXPECT_EQ(0, rlz_lib::HexStringToInteger(NULL)); in TEST() 32 rlz_lib::SetExpectedAssertion(""); in TEST() 33 EXPECT_EQ(0, rlz_lib::HexStringToInteger("")); in TEST() 34 EXPECT_EQ(0, rlz_lib::HexStringToInteger(" ")); in TEST() 35 EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x ")); in TEST() 36 EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x0 ")); in TEST() [all …]
|
D | rlz_lib.cc | 23 rlz_lib::AccessPoint access_point; 24 rlz_lib::Event event_type; 29 bool IsAccessPointSupported(rlz_lib::AccessPoint point) { in IsAccessPointSupported() 31 case rlz_lib::NO_ACCESS_POINT: in IsAccessPointSupported() 32 case rlz_lib::LAST_ACCESS_POINT: in IsAccessPointSupported() 34 case rlz_lib::MOBILE_IDLE_SCREEN_BLACKBERRY: in IsAccessPointSupported() 35 case rlz_lib::MOBILE_IDLE_SCREEN_WINMOB: in IsAccessPointSupported() 36 case rlz_lib::MOBILE_IDLE_SCREEN_SYMBIAN: in IsAccessPointSupported() 40 case rlz_lib::IE_DEFAULT_SEARCH: in IsAccessPointSupported() 41 case rlz_lib::IE_HOME_PAGE: in IsAccessPointSupported() [all …]
|
D | rlz_lib_clear.cc | 17 namespace rlz_lib { namespace 20 rlz_lib::ScopedRlzValueStoreLock lock; in ClearAllProductEvents() 21 rlz_lib::RlzValueStore* store = lock.GetStore(); in ClearAllProductEvents() 22 if (!store || !store->HasAccess(rlz_lib::RlzValueStore::kWriteAccess)) in ClearAllProductEvents() 32 rlz_lib::ScopedRlzValueStoreLock lock; in ClearProductState() 33 rlz_lib::RlzValueStore* store = lock.GetStore(); in ClearProductState() 34 if (!store || !store->HasAccess(rlz_lib::RlzValueStore::kWriteAccess)) in ClearProductState()
|
D | crc8_unittest.cc | 41 rlz_lib::Crc8::Generate(bytes, length, &crc); in TEST() 43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); in TEST() 48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); in TEST()
|
D | machine_id.cc | 12 namespace rlz_lib { namespace 74 rlz_lib::Crc8::Generate(id_binary.c_str(), in GetMachineIdImpl() 78 return rlz_lib::BytesToString( in GetMachineIdImpl()
|
D | assert.h | 23 if (rlz_lib::expected_assertion_ != expr_string) { \ 39 namespace rlz_lib {
|
D | crc32_unittest.cc | 29 rlz_lib::Crc32(reinterpret_cast<const unsigned char*>(kData[i].data), in TEST() 49 EXPECT_TRUE(rlz_lib::Crc32(kData[i].data, &crc)); in TEST()
|
D | assert.cc | 9 namespace rlz_lib { namespace
|
/external/chromium_org/rlz/win/dll/ |
D | exports.cc | 11 RLZ_DLL_EXPORT bool RecordProductEvent(rlz_lib::Product product, in RecordProductEvent() 12 rlz_lib::AccessPoint point, in RecordProductEvent() 13 rlz_lib::Event event_id) { in RecordProductEvent() 14 return rlz_lib::RecordProductEvent(product, point, event_id); in RecordProductEvent() 17 RLZ_DLL_EXPORT bool GetProductEventsAsCgi(rlz_lib::Product product, in GetProductEventsAsCgi() 20 return rlz_lib::GetProductEventsAsCgi(product, unescaped_cgi, in GetProductEventsAsCgi() 23 RLZ_DLL_EXPORT bool ClearAllProductEvents(rlz_lib::Product product) { in ClearAllProductEvents() 24 return rlz_lib::ClearAllProductEvents(product); in ClearAllProductEvents() 27 RLZ_DLL_EXPORT bool ClearProductEvent(rlz_lib::Product product, in ClearProductEvent() 28 rlz_lib::AccessPoint point, in ClearProductEvent() [all …]
|
/external/chromium_org/rlz/win/lib/ |
D | machine_deal_test.cc | 21 class MachineDealCodeHelper : public rlz_lib::MachineDealCode { 23 static bool Clear() { return rlz_lib::MachineDealCode::Clear(); } in Clear() 34 EXPECT_TRUE(rlz_lib::CreateMachineState()); in TEST_F() 42 EXPECT_TRUE(rlz_lib::MachineDealCode::Set("dcc_value")); in TEST_F() 44 EXPECT_TRUE(rlz_lib::MachineDealCode::Get(dcc_50, 50)); in TEST_F() 47 EXPECT_TRUE(rlz_lib::MachineDealCode::Set("dcc_value_2")); in TEST_F() 49 EXPECT_TRUE(rlz_lib::MachineDealCode::Get(dcc_50, 50)); in TEST_F() 59 EXPECT_FALSE(rlz_lib::MachineDealCode::Get(dcc_50, 50)); in TEST_F() 61 EXPECT_TRUE(rlz_lib::MachineDealCode::Set("dcc_value")); in TEST_F() 63 EXPECT_TRUE(rlz_lib::MachineDealCode::Get(dcc_50, 50)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/rlz/ |
D | rlz.cc | 83 rlz_lib::RecordProductEvent(rlz_lib::CHROME, in RecordProductEvents() 85 rlz_lib::INSTALL); in RecordProductEvents() 87 rlz_lib::RecordProductEvent(rlz_lib::CHROME, in RecordProductEvents() 89 rlz_lib::INSTALL); in RecordProductEvents() 90 rlz_lib::RecordProductEvent(rlz_lib::CHROME, in RecordProductEvents() 92 rlz_lib::INSTALL); in RecordProductEvents() 98 char omnibox_rlz[rlz_lib::kMaxRlzLength + 1]; in RecordProductEvents() 99 if (!rlz_lib::GetAccessPointRlz(RLZTracker::ChromeOmnibox(), omnibox_rlz, in RecordProductEvents() 100 rlz_lib::kMaxRlzLength)) { in RecordProductEvents() 106 rlz_lib::RecordProductEvent(rlz_lib::CHROME, in RecordProductEvents() [all …]
|
D | rlz.h | 58 static bool RecordProductEvent(rlz_lib::Product product, 59 rlz_lib::AccessPoint point, 60 rlz_lib::Event event_id); 63 static rlz_lib::AccessPoint ChromeOmnibox(); 65 static rlz_lib::AccessPoint ChromeHomePage(); 66 static rlz_lib::AccessPoint ChromeAppList(); 74 static std::string GetAccessPointHttpHeader(rlz_lib::AccessPoint point); 79 static bool GetAccessPointRlz(rlz_lib::AccessPoint point, 149 bool RecordProductEventImpl(rlz_lib::Product product, 150 rlz_lib::AccessPoint point, [all …]
|
D | rlz_mac.cc | 8 rlz_lib::AccessPoint RLZTracker::ChromeOmnibox() { in ChromeOmnibox() 9 return rlz_lib::CHROME_MAC_OMNIBOX; in ChromeOmnibox() 13 rlz_lib::AccessPoint RLZTracker::ChromeHomePage() { in ChromeHomePage() 14 return rlz_lib::CHROME_MAC_HOME_PAGE; in ChromeHomePage() 18 rlz_lib::AccessPoint RLZTracker::ChromeAppList() { in ChromeAppList() 19 return rlz_lib::CHROME_MAC_APP_LIST; in ChromeAppList()
|
D | rlz_chromeos.cc | 8 rlz_lib::AccessPoint RLZTracker::ChromeOmnibox() { in ChromeOmnibox() 9 return rlz_lib::CHROMEOS_OMNIBOX; in ChromeOmnibox() 13 rlz_lib::AccessPoint RLZTracker::ChromeHomePage() { in ChromeHomePage() 14 return rlz_lib::CHROMEOS_HOME_PAGE; in ChromeHomePage() 18 rlz_lib::AccessPoint RLZTracker::ChromeAppList() { in ChromeAppList() 19 return rlz_lib::CHROMEOS_APP_LIST; in ChromeAppList()
|
D | rlz_win.cc | 8 rlz_lib::AccessPoint RLZTracker::ChromeOmnibox() { in ChromeOmnibox() 9 return rlz_lib::CHROME_OMNIBOX; in ChromeOmnibox() 13 rlz_lib::AccessPoint RLZTracker::ChromeHomePage() { in ChromeHomePage() 14 return rlz_lib::CHROME_HOME_PAGE; in ChromeHomePage() 18 rlz_lib::AccessPoint RLZTracker::ChromeAppList() { in ChromeAppList() 19 return rlz_lib::CHROME_APP_LIST; in ChromeAppList()
|
D | rlz_unittest.cc | 120 virtual bool ScheduleRecordProductEvent(rlz_lib::Product product, in ScheduleRecordProductEvent() 121 rlz_lib::AccessPoint point, in ScheduleRecordProductEvent() 122 rlz_lib::Event event_id) OVERRIDE { in ScheduleRecordProductEvent() 126 virtual bool ScheduleGetAccessPointRlz(rlz_lib::AccessPoint point) OVERRIDE { in ScheduleGetAccessPointRlz() 130 virtual bool ScheduleRecordFirstSearch(rlz_lib::AccessPoint point) OVERRIDE { in ScheduleRecordFirstSearch() 149 rlz_lib::SetAccessPointRlz(RLZTracker::ChromeOmnibox(), in SendFinancialPing() 151 rlz_lib::SetAccessPointRlz(RLZTracker::ChromeHomePage(), in SendFinancialPing() 153 rlz_lib::SetAccessPointRlz(RLZTracker::ChromeAppList(), in SendFinancialPing() 270 char cgi[rlz_lib::kMaxCgiLength]; in ExpectEventRecorded() 271 GetProductEventsAsCgi(rlz_lib::CHROME, cgi, arraysize(cgi)); in ExpectEventRecorded() [all …]
|
D | rlz_ios.mm | 10 rlz_lib::AccessPoint RLZTracker::ChromeOmnibox() { 12 ? rlz_lib::CHROME_IOS_OMNIBOX_MOBILE 13 : rlz_lib::CHROME_IOS_OMNIBOX_TABLET;
|
/external/chromium_org/rlz/ |
D | BUILD.gn | 12 source_set("rlz_lib") { 32 "lib/rlz_lib.cc", 33 "lib/rlz_lib.h", 85 ":rlz_lib", 106 ":rlz_lib", 122 ":rlz_lib", 133 ":rlz_lib",
|
D | rlz.gyp | 27 'target_name': 'rlz_lib', 52 'lib/rlz_lib.cc', 53 'lib/rlz_lib.h', 116 ':rlz_lib', 130 ':rlz_lib', 163 ':rlz_lib', 181 ':rlz_lib',
|
/external/chromium_org/rlz/test/ |
D | rlz_unittest_main.cc | 35 rlz_lib::testing::SetRlzStoreDirectory(temp_dir.path()); in main() 37 rlz_lib::SupplementaryBranding branding("TEST"); in main()
|
D | rlz_test_helpers.cc | 136 rlz_lib::testing::SetRlzStoreDirectory(temp_dir_.path()); in SetUp() 142 rlz_lib::testing::SetRlzStoreDirectory(base::FilePath()); in TearDown() 149 rlz_lib::CreateMachineState(); in SetUp()
|
/external/chromium_org/rlz/chromeos/lib/ |
D | machine_id_chromeos.cc | 7 namespace rlz_lib { namespace
|