Chromium Code Reviews| Index: components/ntp_snippets/category_factory_unittest.cc |
| diff --git a/components/ntp_snippets/category_factory_unittest.cc b/components/ntp_snippets/category_factory_unittest.cc |
| index 6ffd149b79eeb386ccfda80b2011aff13b52004e..b600c88b85d71a3d3b059a32cc269e96337f5155 100644 |
| --- a/components/ntp_snippets/category_factory_unittest.cc |
| +++ b/components/ntp_snippets/category_factory_unittest.cc |
| @@ -15,7 +15,8 @@ namespace ntp_snippets { |
| class CategoryFactoryTest : public testing::Test { |
| public: |
| - CategoryFactoryTest() : unused_remote_category_id_(1) {} |
| + // Note: uses 2 as first remote category id as 1 is used for |ARTICLES| |
| + CategoryFactoryTest() : unused_remote_category_id_(2) {} |
|
Bernhard Bauer
2016/10/17 16:52:04
Nit: You could just use ARTICLES + 1 :)
dgn
2016/10/17 17:12:29
Done. Added LAST_KNOWN_REMOTE_CATEGORY for this.
|
| int GetUnusedRemoteCategoryID() { return unused_remote_category_id_++; } |