| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/signin/core/browser/refresh_token_annotation_request.h" | 5 #include "components/signin/core/browser/refresh_token_annotation_request.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_registry_simple.h" | 7 #include "components/prefs/pref_registry_simple.h" |
| 8 #include "base/prefs/testing_pref_service.h" | 8 #include "components/prefs/testing_pref_service.h" |
| 9 #include "components/signin/core/common/signin_pref_names.h" | 9 #include "components/signin/core/common/signin_pref_names.h" |
| 10 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 class RefreshTokenAnnotationRequestTest : public testing::Test { | 13 class RefreshTokenAnnotationRequestTest : public testing::Test { |
| 14 protected: | 14 protected: |
| 15 TestingPrefServiceSimple pref_service_; | 15 TestingPrefServiceSimple pref_service_; |
| 16 | 16 |
| 17 void SetUp() override { | 17 void SetUp() override { |
| 18 pref_service_.registry()->RegisterInt64Pref( | 18 pref_service_.registry()->RegisterInt64Pref( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 std::string expected_body = | 63 std::string expected_body = |
| 64 "force=true" | 64 "force=true" |
| 65 "&response_type=none" | 65 "&response_type=none" |
| 66 "&scope=https://www.googleapis.com/auth/userinfo.email" | 66 "&scope=https://www.googleapis.com/auth/userinfo.email" |
| 67 "&client_id=client_id1" | 67 "&client_id=client_id1" |
| 68 "&device_id=device_id1" | 68 "&device_id=device_id1" |
| 69 "&device_type=chrome" | 69 "&device_type=chrome" |
| 70 "&lib_ver=39.0+(stable)"; | 70 "&lib_ver=39.0+(stable)"; |
| 71 EXPECT_EQ(expected_body, body); | 71 EXPECT_EQ(expected_body, body); |
| 72 } | 72 } |
| OLD | NEW |