| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/memory/ptr_util.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/chromeos/arc/arc_auth_service.h" | 14 #include "chrome/browser/chromeos/arc/arc_auth_service.h" |
| 14 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 15 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
| 15 #include "chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.h" | 16 #include "chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.h" |
| 16 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 17 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
| 17 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 18 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| 18 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 19 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 19 #include "chrome/browser/policy/cloud/test_request_interceptor.h" | 20 #include "chrome/browser/policy/cloud/test_request_interceptor.h" |
| 20 #include "chrome/test/base/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // value. | 167 // value. |
| 167 std::string auth_code = "NOT-YET-FETCHED"; | 168 std::string auth_code = "NOT-YET-FETCHED"; |
| 168 auto robot_fetcher = base::MakeUnique<ArcRobotAuthCodeFetcher>(); | 169 auto robot_fetcher = base::MakeUnique<ArcRobotAuthCodeFetcher>(); |
| 169 FetchAuthCode(robot_fetcher.get(), &auth_code); | 170 FetchAuthCode(robot_fetcher.get(), &auth_code); |
| 170 | 171 |
| 171 // Use EXPECT_EQ for better logging in case of failure. | 172 // Use EXPECT_EQ for better logging in case of failure. |
| 172 EXPECT_EQ(std::string(), auth_code); | 173 EXPECT_EQ(std::string(), auth_code); |
| 173 } | 174 } |
| 174 | 175 |
| 175 } // namespace arc | 176 } // namespace arc |
| OLD | NEW |