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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h " 5 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 #include "base/test/mock_entropy_provider.h" 25 #include "base/test/mock_entropy_provider.h"
26 #include "base/threading/thread_task_runner_handle.h" 26 #include "base/threading/thread_task_runner_handle.h"
27 #include "build/build_config.h" 27 #include "build/build_config.h"
28 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 28 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
29 #include "chrome/browser/history/chrome_history_client.h" 29 #include "chrome/browser/history/chrome_history_client.h"
30 #include "chrome/browser/history/history_service_factory.h" 30 #include "chrome/browser/history/history_service_factory.h"
31 #include "chrome/browser/history/web_history_service_factory.h" 31 #include "chrome/browser/history/web_history_service_factory.h"
32 #include "chrome/browser/prefs/browser_prefs.h" 32 #include "chrome/browser/prefs/browser_prefs.h"
33 #include "chrome/browser/profiles/profile_manager.h" 33 #include "chrome/browser/profiles/profile_manager.h"
34 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
35 #include "chrome/common/safe_browsing/csd.pb.h"
36 #include "chrome/test/base/testing_browser_process.h" 35 #include "chrome/test/base/testing_browser_process.h"
37 #include "chrome/test/base/testing_profile.h" 36 #include "chrome/test/base/testing_profile.h"
38 #include "chrome/test/base/testing_profile_manager.h" 37 #include "chrome/test/base/testing_profile_manager.h"
39 #include "components/history/content/browser/content_visit_delegate.h" 38 #include "components/history/content/browser/content_visit_delegate.h"
40 #include "components/history/content/browser/download_conversions.h" 39 #include "components/history/content/browser/download_conversions.h"
41 #include "components/history/content/browser/history_database_helper.h" 40 #include "components/history/content/browser/history_database_helper.h"
42 #include "components/history/core/browser/download_constants.h" 41 #include "components/history/core/browser/download_constants.h"
43 #include "components/history/core/browser/download_row.h" 42 #include "components/history/core/browser/download_row.h"
44 #include "components/history/core/browser/history_constants.h" 43 #include "components/history/core/browser/history_constants.h"
45 #include "components/history/core/browser/history_database_params.h" 44 #include "components/history/core/browser/history_database_params.h"
46 #include "components/history/core/browser/history_service.h" 45 #include "components/history/core/browser/history_service.h"
46 #include "components/safe_browsing/csd.pb.h"
47 #include "components/safe_browsing_db/safe_browsing_prefs.h" 47 #include "components/safe_browsing_db/safe_browsing_prefs.h"
48 #include "components/sync_preferences/testing_pref_service_syncable.h" 48 #include "components/sync_preferences/testing_pref_service_syncable.h"
49 #include "content/public/test/test_browser_thread_bundle.h" 49 #include "content/public/test/test_browser_thread_bundle.h"
50 #include "content/public/test/test_utils.h" 50 #include "content/public/test/test_utils.h"
51 #include "testing/gtest/include/gtest/gtest.h" 51 #include "testing/gtest/include/gtest/gtest.h"
52 52
53 namespace { 53 namespace {
54 54
55 // A BrowserContextKeyedServiceFactory::TestingFactoryFunction that creates a 55 // A BrowserContextKeyedServiceFactory::TestingFactoryFunction that creates a
56 // HistoryService for a TestingProfile. 56 // HistoryService for a TestingProfile.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 base::Bind(&LastDownloadFinderTest::OnLastDownload, 465 base::Bind(&LastDownloadFinderTest::OnLastDownload,
466 base::Unretained(this), &last_binary_download, 466 base::Unretained(this), &last_binary_download,
467 &last_non_binary_download, run_loop.QuitClosure()))); 467 &last_non_binary_download, run_loop.QuitClosure())));
468 468
469 run_loop.Run(); 469 run_loop.Run();
470 470
471 ASSERT_TRUE(last_binary_download); 471 ASSERT_TRUE(last_binary_download);
472 } 472 }
473 473
474 } // namespace safe_browsing 474 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698