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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_helper_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/content_settings/cookie_settings.h" 5 #include "chrome/browser/content_settings/cookie_settings.h"
6 #include "chrome/browser/prefs/pref_service.h" 6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/signin/signin_manager_factory.h" 9 #include "chrome/browser/signin/signin_manager_factory.h"
10 #include "chrome/browser/signin/signin_manager_fake.h" 10 #include "chrome/browser/signin/signin_manager_fake.h"
11 #include "chrome/browser/ui/sync/one_click_signin_helper.h" 11 #include "chrome/browser/ui/sync/one_click_signin_helper.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "content/public/browser/browser_context.h" 14 #include "content/public/browser/browser_context.h"
15 #include "content/public/browser/navigation_controller.h" 15 #include "content/public/browser/navigation_controller.h"
16 #include "content/public/browser/site_instance.h" 16 #include "content/public/browser/site_instance.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/test/test_browser_context.h" 18 #include "content/test/test_browser_context.h"
19 #include "content/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 #include "content/test/web_contents_tester.h" 20 #include "content/test/web_contents_tester.h"
21 #include "testing/gmock/include/gmock/gmock-actions.h" 21 #include "testing/gmock/include/gmock/gmock-actions.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace { 25 namespace {
26 26
27 class OneClickSigninHelperTest : public testing::Test { 27 class OneClickSigninHelperTest : public testing::Test {
28 public: 28 public:
29 OneClickSigninHelperTest() : signin_manager_(NULL) { 29 OneClickSigninHelperTest() : signin_manager_(NULL) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 147
148 TEST_F(OneClickSigninHelperTest, CanOfferNoSigninCookies) { 148 TEST_F(OneClickSigninHelperTest, CanOfferNoSigninCookies) {
149 MarkCurrentThreadAsUIThread(); 149 MarkCurrentThreadAsUIThread();
150 content::WebContents* web_contents = CreateMockWebContents(true); 150 content::WebContents* web_contents = CreateMockWebContents(true);
151 AllowSigninCookies(false); 151 AllowSigninCookies(false);
152 152
153 EXPECT_FALSE(OneClickSigninHelper::CanOffer(web_contents, true)); 153 EXPECT_FALSE(OneClickSigninHelper::CanOffer(web_contents, true));
154 EXPECT_FALSE(OneClickSigninHelper::CanOffer(web_contents, false)); 154 EXPECT_FALSE(OneClickSigninHelper::CanOffer(web_contents, false));
155 } 155 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/select_file_dialog_unittest.cc ('k') | chrome/browser/ui/tab_modal_confirm_dialog_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698