OLD | NEW |
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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/prefs/testing_pref_service.h" |
10 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
11 #include "chrome/browser/extensions/app_notify_channel_setup.h" | 12 #include "chrome/browser/extensions/app_notify_channel_setup.h" |
12 #include "chrome/browser/extensions/app_notify_channel_ui.h" | 13 #include "chrome/browser/extensions/app_notify_channel_ui.h" |
13 #include "chrome/browser/signin/token_service_factory.h" | 14 #include "chrome/browser/signin/token_service_factory.h" |
14 #include "chrome/browser/signin/token_service_unittest.h" | 15 #include "chrome/browser/signin/token_service_unittest.h" |
15 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
17 #include "chrome/test/base/testing_pref_service.h" | |
18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "google_apis/gaia/gaia_urls.h" | 20 #include "google_apis/gaia/gaia_urls.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "net/url_request/test_url_fetcher_factory.h" | 22 #include "net/url_request/test_url_fetcher_factory.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 using testing::_; | 27 using testing::_; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 SetupLogin(true, true); | 311 SetupLogin(true, true); |
312 SetupFetchAccessToken(true); | 312 SetupFetchAccessToken(true); |
313 SetupRecordGrant(true); | 313 SetupRecordGrant(true); |
314 SetupGetChannelId(true); | 314 SetupGetChannelId(true); |
315 | 315 |
316 scoped_refptr<AppNotifyChannelSetup> setup = CreateInstance(); | 316 scoped_refptr<AppNotifyChannelSetup> setup = CreateInstance(); |
317 RunServerTest(setup, "dummy_do_not_use", ""); | 317 RunServerTest(setup, "dummy_do_not_use", ""); |
318 } | 318 } |
319 | 319 |
320 } // namespace extensions | 320 } // namespace extensions |
OLD | NEW |