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

Side by Side Diff: chrome/browser/extensions/api/networking_private/networking_private_apitest.cc

Issue 378513005: [Athena] Extract Chrome OS authentication stack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix includes in one more test Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/callback.h" 6 #include "base/callback.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/login/users/user.h" 10 #include "chrome/browser/chromeos/login/users/user.h"
11 #include "chrome/browser/chromeos/login/users/user_manager.h" 11 #include "chrome/browser/chromeos/login/users/user_manager.h"
12 #include "chrome/browser/extensions/extension_apitest.h" 12 #include "chrome/browser/extensions/extension_apitest.h"
13 #include "chrome/test/base/ui_test_utils.h" 13 #include "chrome/test/base/ui_test_utils.h"
14 #include "extensions/common/switches.h" 14 #include "extensions/common/switches.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 16
17 #if defined(OS_CHROMEOS) 17 #if defined(OS_CHROMEOS)
18 #include "chrome/browser/chrome_notification_types.h" 18 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/chromeos/login/helper.h" 19 #include "chrome/browser/chromeos/login/helper.h"
20 #include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h" 20 #include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h"
21 #include "chromeos/chromeos_switches.h" 21 #include "chromeos/chromeos_switches.h"
22 #include "chromeos/dbus/cryptohome_client.h" 22 #include "chromeos/dbus/cryptohome_client.h"
23 #include "chromeos/dbus/dbus_thread_manager.h" 23 #include "chromeos/dbus/dbus_thread_manager.h"
24 #include "chromeos/dbus/shill_device_client.h" 24 #include "chromeos/dbus/shill_device_client.h"
25 #include "chromeos/dbus/shill_ipconfig_client.h" 25 #include "chromeos/dbus/shill_ipconfig_client.h"
26 #include "chromeos/dbus/shill_manager_client.h" 26 #include "chromeos/dbus/shill_manager_client.h"
27 #include "chromeos/dbus/shill_profile_client.h" 27 #include "chromeos/dbus/shill_profile_client.h"
28 #include "chromeos/dbus/shill_service_client.h" 28 #include "chromeos/dbus/shill_service_client.h"
29 #include "chromeos/login/user_names.h"
29 #include "chromeos/network/onc/onc_utils.h" 30 #include "chromeos/network/onc/onc_utils.h"
30 #include "chromeos/network/portal_detector/network_portal_detector.h" 31 #include "chromeos/network/portal_detector/network_portal_detector.h"
31 #include "components/onc/onc_constants.h" 32 #include "components/onc/onc_constants.h"
32 #include "components/policy/core/browser/browser_policy_connector.h" 33 #include "components/policy/core/browser/browser_policy_connector.h"
33 #include "components/policy/core/common/external_data_fetcher.h" 34 #include "components/policy/core/common/external_data_fetcher.h"
34 #include "components/policy/core/common/mock_configuration_policy_provider.h" 35 #include "components/policy/core/common/mock_configuration_policy_provider.h"
35 #include "components/policy/core/common/policy_map.h" 36 #include "components/policy/core/common/policy_map.h"
36 #include "components/policy/core/common/policy_types.h" 37 #include "components/policy/core/common/policy_types.h"
37 #include "content/public/browser/notification_observer.h" 38 #include "content/public/browser/notification_observer.h"
38 #include "content/public/browser/notification_registrar.h" 39 #include "content/public/browser/notification_registrar.h"
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 616
616 TestListener listener( 617 TestListener listener(
617 "notifyPortalDetectorObservers", 618 "notifyPortalDetectorObservers",
618 base::Bind(&NetworkPortalDetectorTestImpl::NotifyObserversForTesting, 619 base::Bind(&NetworkPortalDetectorTestImpl::NotifyObserversForTesting,
619 base::Unretained(detector()))); 620 base::Unretained(detector())));
620 EXPECT_TRUE(RunNetworkingSubtest("captivePortalNotification")) << message_; 621 EXPECT_TRUE(RunNetworkingSubtest("captivePortalNotification")) << message_;
621 } 622 }
622 #endif // defined(OS_CHROMEOS) 623 #endif // defined(OS_CHROMEOS)
623 624
624 } // namespace 625 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698