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

Side by Side Diff: components/signin/core/browser/refresh_token_annotation_request_unittest.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/signin/core/browser/refresh_token_annotation_request.cc ('k') | components/signin/core/browser/signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698