| 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/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| 11 #include "chrome/browser/extensions/app_notify_channel_setup.h" | 11 #include "chrome/browser/extensions/app_notify_channel_setup.h" |
| 12 #include "chrome/browser/extensions/app_notify_channel_ui.h" | 12 #include "chrome/browser/extensions/app_notify_channel_ui.h" |
| 13 #include "chrome/browser/signin/token_service_factory.h" | 13 #include "chrome/browser/signin/token_service_factory.h" |
| 14 #include "chrome/browser/signin/token_service_unittest.h" | 14 #include "chrome/browser/signin/token_service_unittest.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/net/gaia/gaia_urls.h" | 16 #include "chrome/common/net/gaia/gaia_urls.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "chrome/test/base/testing_pref_service.h" | 18 #include "chrome/test/base/testing_pref_service.h" |
| 19 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
| 20 #include "content/public/test/test_browser_thread.h" | 20 #include "content/public/test/test_browser_thread.h" |
| 21 #include "content/test/test_url_fetcher_factory.h" | 21 #include "content/public/test/test_url_fetcher_factory.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.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::_; |
| 28 using testing::Return; | 28 using testing::Return; |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 SetupLogin(false, true); | 309 SetupLogin(false, true); |
| 310 SetupFetchAccessToken(false); | 310 SetupFetchAccessToken(false); |
| 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 } |
| OLD | NEW |