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

Side by Side Diff: components/policy/core/common/cloud/user_info_fetcher_unittest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 (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/values.h" 5 #include "base/values.h"
6 #include "chrome/browser/policy/cloud/user_info_fetcher.h" 6 #include "components/policy/core/common/cloud/user_info_fetcher.h"
7 #include "google_apis/gaia/google_service_auth_error.h" 7 #include "google_apis/gaia/google_service_auth_error.h"
8 #include "net/http/http_status_code.h" 8 #include "net/http/http_status_code.h"
9 #include "net/url_request/test_url_fetcher_factory.h" 9 #include "net/url_request/test_url_fetcher_factory.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using testing::_; 13 using testing::_;
14 14
15 namespace policy { 15 namespace policy {
16 16
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // the values passed off to the success callback. 71 // the values passed off to the success callback.
72 EXPECT_CALL(delegate, OnGetUserInfoSuccess(MatchDict(dict.get()))); 72 EXPECT_CALL(delegate, OnGetUserInfoSuccess(MatchDict(dict.get())));
73 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); 73 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0);
74 url_fetcher->set_response_code(net::HTTP_OK); 74 url_fetcher->set_response_code(net::HTTP_OK);
75 url_fetcher->SetResponseString(kUserInfoResponse); 75 url_fetcher->SetResponseString(kUserInfoResponse);
76 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); 76 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
77 } 77 }
78 } // namespace 78 } // namespace
79 79
80 } // namespace policy 80 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698