diff --git a/components/brave_ads/README.md b/components/brave_ads/README.md index 4f342c158e2c..7423ace50674 100644 --- a/components/brave_ads/README.md +++ b/components/brave_ads/README.md @@ -2,7 +2,7 @@ Users earn tokens by viewing privacy-first Brave Ads. Ads presented are based on the user's interests, as inferred from the user's browsing behavior. No personal data or browsing history should ever leave the browser. -For more details, refer to [glossary of terms](../../../brave/components/brave_ads/GLOSSARY.md). +For more details, refer to [glossary of terms](GLOSSARY.md). Brave Ads is a [layered component](https://sites.google.com/a/chromium.org/dev/developers/design-documents/layered-components-design). It has the following structure: diff --git a/components/brave_ads/core/README.md b/components/brave_ads/core/README.md index 01c39c98d04e..c6231c032e6f 100644 --- a/components/brave_ads/core/README.md +++ b/components/brave_ads/core/README.md @@ -2,4 +2,6 @@ Platform independent implementation of the world's first global ad platform built on privacy, see [Brave Ads](https://brave.com/brave-ads-launch/). +For more details, refer to [glossary of terms](../GLOSSARY.md). + Please add to it! diff --git a/components/brave_ads/core/internal/common/unittest/README.md b/components/brave_ads/core/internal/common/unittest/README.md index a1d05a54f715..62de3039848d 100644 --- a/components/brave_ads/core/internal/common/unittest/README.md +++ b/components/brave_ads/core/internal/common/unittest/README.md @@ -23,8 +23,9 @@ Override `SetUp` and call `SetUp` with `is_integration_test` set to `true` to te Use the `GetAds` convenience function to access `AdsImpl`. i.e. - GetAds().TriggerNotificationAdEvent(/*placement_id* - "7ee858e8-6306-4317-88c3-9e7d58afad26", ConfirmationType::kClicked); + GetAds().TriggerNotificationAdEvent( + /*placement_id=*/"7ee858e8-6306-4317-88c3-9e7d58afad26", + ConfirmationType::kClicked); ## Mocking Command-Line Switches @@ -76,7 +77,7 @@ Mocked responses for URL requests can be defined inline or read from a text file net::HTTP_OK, "/response.json" } } - } + }; MockUrlResponses(ads_client_mock_, url_responses); @@ -88,7 +89,7 @@ Inline or text file responses can contain `` tags for mocking times net::HTTP_OK, "An example response with a timestamp in the not too distant future" } } - } + }; MockUrlResponses(ads_client_mock_, url_responses); @@ -96,23 +97,25 @@ Inline or text file responses can contain `` tags for mocking times You can add one or more responses per request, which will be returned in the given order, then will wrap back to the first response after mocking the last, i.e. - const URLResponseMap url_responses = { - "/foo/bar", { - { - net::HTTP_INTERNAL_SERVER_ERROR, "Program say to kill, to disassemble, to make dead" - }, - { - net::HTTP_CREATED, "To me there's no creativity without boundaries" + const URLResponseMap url_responses2 = { + { + "/foo/bar", { + { + net::HTTP_INTERNAL_SERVER_ERROR, "Program say to kill, to disassemble, to make dead" + }, + { + net::HTTP_CREATED, "To me there's no creativity without boundaries" + } } - } - }, - { - "/baz", { - { - net::HTTP_IM_A_TEAPOT, "Keep Calm & Drink Tea! L. Masinter, 1 April 1998" + }, + { + "/baz", { + { + net::HTTP_IM_A_TEAPOT, "Keep Calm & Drink Tea! L. Masinter, 1 April 1998" + } } } - } + }; MockUrlResponses(ads_client_mock_, url_responses);