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

Side by Side Diff: chrome/browser/google/google_url_tracker_unittest.cc

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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
« no previous file with comments | « chrome/browser/google/google_url_tracker.h ('k') | chrome/browser/importer/toolbar_importer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/google/google_url_tracker.h" 5 #include "chrome/browser/google/google_url_tracker.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/prefs/browser_prefs.h" 10 #include "chrome/browser/prefs/browser_prefs.h"
11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
12 #include "chrome/common/net/test_url_fetcher_factory.h"
13 #include "chrome/common/net/url_fetcher.h"
14 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
15 #include "chrome/test/testing_browser_process_test.h" 13 #include "chrome/test/testing_browser_process_test.h"
16 #include "chrome/test/testing_pref_service.h" 14 #include "chrome/test/testing_pref_service.h"
17 #include "content/browser/browser_thread.h" 15 #include "content/browser/browser_thread.h"
18 #include "content/common/notification_service.h" 16 #include "content/common/notification_service.h"
17 #include "content/common/test_url_fetcher_factory.h"
18 #include "content/common/url_fetcher.h"
19 #include "net/url_request/url_request.h" 19 #include "net/url_request/url_request.h"
20 #include "net/url_request/url_request_context_getter.h" 20 #include "net/url_request/url_request_context_getter.h"
21 #include "net/url_request/url_request_test_util.h" 21 #include "net/url_request/url_request_test_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 // TestNotificationObserver --------------------------------------------------- 24 // TestNotificationObserver ---------------------------------------------------
25 25
26 namespace { 26 namespace {
27 27
28 class TestNotificationObserver : public NotificationObserver { 28 class TestNotificationObserver : public NotificationObserver {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 NavEntryCommitted(); 442 NavEntryCommitted();
443 EXPECT_TRUE(InfoBarIsShown()); 443 EXPECT_TRUE(InfoBarIsShown());
444 444
445 AcceptGoogleURL(); 445 AcceptGoogleURL();
446 InfoBarClosed(); 446 InfoBarClosed();
447 EXPECT_FALSE(InfoBarIsShown()); 447 EXPECT_FALSE(InfoBarIsShown());
448 EXPECT_EQ(GURL("http://www.google.co.jp/"), GoogleURLTracker::GoogleURL()); 448 EXPECT_EQ(GURL("http://www.google.co.jp/"), GoogleURLTracker::GoogleURL());
449 EXPECT_EQ(GURL("http://www.google.co.jp/"), GetLastPromptedGoogleURL()); 449 EXPECT_EQ(GURL("http://www.google.co.jp/"), GetLastPromptedGoogleURL());
450 EXPECT_TRUE(observer_->notified()); 450 EXPECT_TRUE(observer_->notified());
451 } 451 }
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker.h ('k') | chrome/browser/importer/toolbar_importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698