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

Side by Side Diff: components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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/proximity_auth/cryptauth/cryptauth_api_call_flow.h" 5 #include "components/proximity_auth/cryptauth/cryptauth_api_call_flow.h"
6 6
7 #include "base/macros.h"
7 #include "base/test/test_simple_task_runner.h" 8 #include "base/test/test_simple_task_runner.h"
8 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
9 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
10 #include "net/url_request/url_request_status.h" 11 #include "net/url_request/url_request_status.h"
11 #include "net/url_request/url_request_test_util.h" 12 #include "net/url_request/url_request_test_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace proximity_auth { 15 namespace proximity_auth {
15 16
16 namespace { 17 namespace {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 // The empty string is a valid protocol buffer message serialization. 143 // The empty string is a valid protocol buffer message serialization.
143 TEST_F(ProximityAuthCryptAuthApiCallFlowTest, ResponseWithNoBody) { 144 TEST_F(ProximityAuthCryptAuthApiCallFlowTest, ResponseWithNoBody) {
144 StartApiCallFlow(); 145 StartApiCallFlow();
145 CompleteCurrentRequest(net::OK, net::HTTP_OK, std::string()); 146 CompleteCurrentRequest(net::OK, net::HTTP_OK, std::string());
146 EXPECT_EQ(std::string(), *result_); 147 EXPECT_EQ(std::string(), *result_);
147 EXPECT_FALSE(error_message_); 148 EXPECT_FALSE(error_message_);
148 } 149 }
149 150
150 } // namespace proximity_auth 151 } // namespace proximity_auth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698