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

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

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 9 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 | 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/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/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
11 #include "chrome/browser/prefs/browser_prefs.h" 11 #include "chrome/browser/prefs/browser_prefs.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/tab_contents/infobar_delegate.h" 13 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
14 #include "chrome/common/net/test_url_fetcher_factory.h" 14 #include "chrome/common/net/test_url_fetcher_factory.h"
15 #include "chrome/common/net/url_fetcher.h" 15 #include "chrome/common/net/url_fetcher.h"
16 #include "chrome/common/net/url_request_context_getter.h" 16 #include "chrome/common/net/url_request_context_getter.h"
17 #include "chrome/common/notification_service.h" 17 #include "chrome/common/notification_service.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chrome/test/testing_browser_process.h" 19 #include "chrome/test/testing_browser_process.h"
20 #include "chrome/test/testing_pref_service.h" 20 #include "chrome/test/testing_pref_service.h"
21 #include "chrome/test/testing_profile.h" 21 #include "chrome/test/testing_profile.h"
22 #include "net/url_request/url_request.h" 22 #include "net/url_request/url_request.h"
23 #include "net/url_request/url_request_test_util.h" 23 #include "net/url_request/url_request_test_util.h"
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 NavEntryCommitted(); 484 NavEntryCommitted();
485 EXPECT_TRUE(InfoBarIsShown()); 485 EXPECT_TRUE(InfoBarIsShown());
486 486
487 AcceptGoogleURL(); 487 AcceptGoogleURL();
488 InfoBarClosed(); 488 InfoBarClosed();
489 EXPECT_FALSE(InfoBarIsShown()); 489 EXPECT_FALSE(InfoBarIsShown());
490 EXPECT_EQ(GURL("http://www.google.co.jp/"), GoogleURLTracker::GoogleURL()); 490 EXPECT_EQ(GURL("http://www.google.co.jp/"), GoogleURLTracker::GoogleURL());
491 EXPECT_EQ(GURL("http://www.google.co.jp/"), GetLastPromptedGoogleURL()); 491 EXPECT_EQ(GURL("http://www.google.co.jp/"), GetLastPromptedGoogleURL());
492 EXPECT_TRUE(observer_->notified()); 492 EXPECT_TRUE(observer_->notified());
493 } 493 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698