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

Side by Side Diff: chrome/browser/history/history_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // History unit tests come in two flavors: 5 // History unit tests come in two flavors:
6 // 6 //
7 // 1. The more complicated style is that the unit test creates a full history 7 // 1. The more complicated style is that the unit test creates a full history
8 // service. This spawns a background thread for the history backend, and 8 // service. This spawns a background thread for the history backend, and
9 // all communication is asynchronous. This is useful for testing more 9 // all communication is asynchronous. This is useful for testing more
10 // complicated things or end-to-end behavior. 10 // complicated things or end-to-end behavior.
(...skipping 27 matching lines...) Expand all
38 #include "chrome/browser/history/download_history_info.h" 38 #include "chrome/browser/history/download_history_info.h"
39 #include "chrome/browser/history/history.h" 39 #include "chrome/browser/history/history.h"
40 #include "chrome/browser/history/history_backend.h" 40 #include "chrome/browser/history/history_backend.h"
41 #include "chrome/browser/history/history_database.h" 41 #include "chrome/browser/history/history_database.h"
42 #include "chrome/browser/history/history_notifications.h" 42 #include "chrome/browser/history/history_notifications.h"
43 #include "chrome/browser/history/in_memory_database.h" 43 #include "chrome/browser/history/in_memory_database.h"
44 #include "chrome/browser/history/in_memory_history_backend.h" 44 #include "chrome/browser/history/in_memory_history_backend.h"
45 #include "chrome/browser/history/page_usage_data.h" 45 #include "chrome/browser/history/page_usage_data.h"
46 #include "chrome/common/chrome_paths.h" 46 #include "chrome/common/chrome_paths.h"
47 #include "chrome/common/thumbnail_score.h" 47 #include "chrome/common/thumbnail_score.h"
48 #include "chrome/test/testing_browser_process_test.h" 48 #include "chrome/test/base/testing_browser_process_test.h"
49 #include "chrome/tools/profiles/thumbnail-inl.h" 49 #include "chrome/tools/profiles/thumbnail-inl.h"
50 #include "content/common/notification_details.h" 50 #include "content/common/notification_details.h"
51 #include "content/common/notification_source.h" 51 #include "content/common/notification_source.h"
52 #include "sql/connection.h" 52 #include "sql/connection.h"
53 #include "sql/statement.h" 53 #include "sql/statement.h"
54 #include "testing/gtest/include/gtest/gtest.h" 54 #include "testing/gtest/include/gtest/gtest.h"
55 #include "third_party/skia/include/core/SkBitmap.h" 55 #include "third_party/skia/include/core/SkBitmap.h"
56 #include "ui/gfx/codec/jpeg_codec.h" 56 #include "ui/gfx/codec/jpeg_codec.h"
57 57
58 using base::Time; 58 using base::Time;
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 history_service_ = history; 856 history_service_ = history;
857 history->ScheduleDBTask(task.get(), &request_consumer); 857 history->ScheduleDBTask(task.get(), &request_consumer);
858 request_consumer.CancelAllRequests(); 858 request_consumer.CancelAllRequests();
859 CleanupHistoryService(); 859 CleanupHistoryService();
860 // WARNING: history has now been deleted. 860 // WARNING: history has now been deleted.
861 history = NULL; 861 history = NULL;
862 ASSERT_FALSE(task->done_invoked); 862 ASSERT_FALSE(task->done_invoked);
863 } 863 }
864 864
865 } // namespace history 865 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/history_querying_unittest.cc ('k') | chrome/browser/history/history_unittest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698