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

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

Issue 8403017: Rename URLFetcher to be URLFetcherImpl, now that we have the content::URLFetcher interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/values.h" 11 #include "base/values.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/base/test_url_request_context_getter.h" 15 #include "chrome/test/base/test_url_request_context_getter.h"
16 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
17 #include "content/common/net/url_fetcher.h"
18 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 #include "content/public/common/url_fetcher.h"
20 #include "content/test/test_notification_tracker.h" 20 #include "content/test/test_notification_tracker.h"
21 21
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 #include "libxml/globals.h" 23 #include "libxml/globals.h"
24 24
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 namespace { 27 namespace {
28 // Overrides some of the component updater behaviors so it is easier to test 28 // Overrides some of the component updater behaviors so it is easier to test
29 // and loops faster. In actual usage it takes hours do to a full cycle. 29 // and loops faster. In actual usage it takes hours do to a full cycle.
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 test_configurator()->SetLoopCount(1); 402 test_configurator()->SetLoopCount(1);
403 component_updater()->Start(); 403 component_updater()->Start();
404 message_loop.Run(); 404 message_loop.Run();
405 405
406 EXPECT_EQ(1, interceptor->hit_count()); 406 EXPECT_EQ(1, interceptor->hit_count());
407 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); 407 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error());
408 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); 408 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count());
409 409
410 component_updater()->Stop(); 410 component_updater()->Stop();
411 } 411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698