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

Side by Side Diff: chrome/browser/component_updater/component_updater_service_unittest.cc

Issue 7541001: Move more files from chrome/test to chrome/test/base, part #3 (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 #include "chrome/browser/component_updater/component_updater_service.h" 5 #include "chrome/browser/component_updater/component_updater_service.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "chrome/browser/component_updater/component_updater_interceptor.h" 12 #include "chrome/browser/component_updater/component_updater_interceptor.h"
13 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/test/test_notification_tracker.h" 15 #include "chrome/test/base/test_notification_tracker.h"
16 #include "chrome/test/test_url_request_context_getter.h" 16 #include "chrome/test/base/test_url_request_context_getter.h"
17 #include "content/common/notification_observer.h" 17 #include "content/common/notification_observer.h"
18 #include "content/common/notification_service.h" 18 #include "content/common/notification_service.h"
19 #include "content/test/test_url_fetcher_factory.h" 19 #include "content/test/test_url_fetcher_factory.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 21
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace { 24 namespace {
25 // Overrides some of the component updater behaviors so it is easier 25 // Overrides some of the component updater behaviors so it is easier
26 // to test and loops faster. 26 // to test and loops faster.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 TestNotificationTracker notification_tracker_; 117 TestNotificationTracker notification_tracker_;
118 // Note that the shadow |at_exit_manager_| will cause the destruction 118 // Note that the shadow |at_exit_manager_| will cause the destruction
119 // of the component updater when this object is destroyed. 119 // of the component updater when this object is destroyed.
120 base::ShadowingAtExitManager at_exit_manager_; 120 base::ShadowingAtExitManager at_exit_manager_;
121 }; 121 };
122 122
123 TEST_F(ComponentUpdaterTest, EmptyTest) { 123 TEST_F(ComponentUpdaterTest, EmptyTest) {
124 EXPECT_EQ(0ul, notification_tracker().size()); 124 EXPECT_EQ(0ul, notification_tracker().size());
125 } 125 }
126 126
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_download_unittest.cc ('k') | chrome/browser/gpu_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698