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

Side by Side Diff: google_apis/drive/request_sender_unittest.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « google_apis/drive/request_sender.cc ('k') | google_apis/drive/request_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/google_apis/request_sender.h" 5 #include "google_apis/drive/request_sender.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "chrome/browser/google_apis/base_requests.h" 8 #include "google_apis/drive/base_requests.h"
9 #include "chrome/browser/google_apis/dummy_auth_service.h" 9 #include "google_apis/drive/dummy_auth_service.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace google_apis { 12 namespace google_apis {
13 13
14 namespace { 14 namespace {
15 15
16 const char kTestRefreshToken[] = "valid-refresh-token"; 16 const char kTestRefreshToken[] = "valid-refresh-token";
17 const char kTestAccessToken[] = "valid-access-token"; 17 const char kTestAccessToken[] = "valid-access-token";
18 18
19 // Enum for indicating the reason why a request is finished. 19 // Enum for indicating the reason why a request is finished.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // by the RequestSender. So with this TestRequest, RequestSender retries 241 // by the RequestSender. So with this TestRequest, RequestSender retries
242 // infinitely. Let it succeed/ 242 // infinitely. Let it succeed/
243 EXPECT_EQ(kTestAccessToken + std::string("3"), 243 EXPECT_EQ(kTestAccessToken + std::string("3"),
244 request->passed_access_token()); 244 request->passed_access_token());
245 request->FinishRequestWithSuccess(); 245 request->FinishRequestWithSuccess();
246 EXPECT_EQ(SUCCESS, finish_reason); 246 EXPECT_EQ(SUCCESS, finish_reason);
247 EXPECT_FALSE(weak_ptr); 247 EXPECT_FALSE(weak_ptr);
248 } 248 }
249 249
250 } // namespace google_apis 250 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/request_sender.cc ('k') | google_apis/drive/request_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698