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

Issue 268673004: Move bookmarks' test support file to the bookmarks component (Closed)

Created:
6 years, 7 months ago by sdefresne
Modified:
6 years, 7 months ago
Reviewers:
tfarina, sky, blundell
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, samarth+watch_chromium.org, tfarina, dougw+watch_chromium.org, donnd+watch_chromium.org, haitaol+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, browser-components-watch_chromium.org, kmadhusu+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su, dhollowa+watch_chromium.org, Jered, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@367839
Visibility:
Public.

Description

Move bookmarks' test support file to the bookmarks component Those files are used by a lot of tests and do not depends on chrome/ or content/ so they can be moved to the component in a new library that will be used by the test (eventually components_unittests). BUG=367839 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268282

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename target and subdirectory #

Total comments: 1

Patch Set 3 : Remove duplicated dependency #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -331 lines) Patch
M chrome/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/bookmarks/partner_bookmarks_shim_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/bookmark_provider_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_codec_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_expanded_state_tracker_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_index_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_node_data_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/bookmarks/bookmark_test_helpers.h View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/bookmarks/bookmark_test_helpers.cc View 1 chunk +0 lines, -139 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/bookmarks/test_bookmark_client.h View 1 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/browser/bookmarks/test_bookmark_client.cc View 1 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/browser_commands_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_apitest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmark_api_helpers_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/lazy_background_page_apitest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/android/android_history_provider_service_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/android/sqlite_cursor_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/importer/profile_writer_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_browsertest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_editor_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_ui_utils_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/recently_used_folders_combo_model_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/cocoa_profile_test.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/undo/bookmark_undo_service_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M components/bookmarks.gypi View 1 1 chunk +18 lines, -0 lines 0 comments Download
A + components/bookmarks/core/test/bookmark_test_helpers.h View 1 2 chunks +3 lines, -3 lines 2 comments Download
A + components/bookmarks/core/test/bookmark_test_helpers.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + components/bookmarks/core/test/test_bookmark_client.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + components/bookmarks/core/test/test_bookmark_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
sdefresne
Please have a look. Note that this depends on https://codereview.chromium.org/257003004/ and will only be submitted ...
6 years, 7 months ago (2014-05-01 15:32:30 UTC) #1
tfarina
Please, name the directory test rather than tests. Since the former is much more common. ...
6 years, 7 months ago (2014-05-01 15:36:55 UTC) #2
sky
https://codereview.chromium.org/268673004/diff/20001/components/bookmarks.gypi File components/bookmarks.gypi (right): https://codereview.chromium.org/268673004/diff/20001/components/bookmarks.gypi#newcode86 components/bookmarks.gypi:86: 'target_name': 'bookmarks_core_tests', bookmarks_core_test_support
6 years, 7 months ago (2014-05-01 19:15:03 UTC) #3
sdefresne
PTAL https://codereview.chromium.org/268673004/diff/20001/components/bookmarks.gypi File components/bookmarks.gypi (right): https://codereview.chromium.org/268673004/diff/20001/components/bookmarks.gypi#newcode86 components/bookmarks.gypi:86: 'target_name': 'bookmarks_core_tests', On 2014/05/01 19:15:04, sky wrote: > ...
6 years, 7 months ago (2014-05-05 14:12:33 UTC) #4
sky
LGTM
6 years, 7 months ago (2014-05-05 14:30:24 UTC) #5
tfarina
lgtm https://codereview.chromium.org/268673004/diff/40001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/268673004/diff/40001/chrome/chrome_tests_unit.gypi#newcode24 chrome/chrome_tests_unit.gypi:24: '../components/components.gyp:sync_driver_test_support', while you are here, remove this duplicated ...
6 years, 7 months ago (2014-05-05 15:51:42 UTC) #6
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 7 months ago (2014-05-05 17:52:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/268673004/60001
6 years, 7 months ago (2014-05-05 17:53:04 UTC) #8
commit-bot: I haz the power
Change committed as 268282
6 years, 7 months ago (2014-05-05 21:53:51 UTC) #9
blundell
6 years, 7 months ago (2014-05-06 09:24:44 UTC) #10
Message was sent while issue was closed.
A couple of after-the-fact comments.

https://codereview.chromium.org/268673004/diff/60001/components/bookmarks/cor...
File components/bookmarks/core/test/bookmark_test_helpers.h (left):

https://codereview.chromium.org/268673004/diff/60001/components/bookmarks/cor...
components/bookmarks/core/test/bookmark_test_helpers.h:13: namespace test {
These can just be in the bookmarks namespace once you move all the component
code to being in the bookmarks namespace.

https://codereview.chromium.org/268673004/diff/60001/components/bookmarks/cor...
File components/bookmarks/core/test/bookmark_test_helpers.h (right):

https://codereview.chromium.org/268673004/diff/60001/components/bookmarks/cor...
components/bookmarks/core/test/bookmark_test_helpers.h:5: #ifndef
COMPONENTS_BOOKMARKS_CORE_TEST_BOOKMARK_TEST_HELPERS_H_
For components, we've typically put the test support code next to the production
code, i.e., in //components/bookmarks/core/browser in this case. I don't see a
reason to deviate from that here.

Powered by Google App Engine
This is Rietveld 408576698