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

Side by Side Diff: components/webp_transcode/webp_network_client_unittest.mm

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/webp_transcode/webp_network_client.mm ('k') | components/webusb/webusb_detector.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 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/webp_transcode/webp_network_client.h" 5 #include "components/webp_transcode/webp_network_client.h"
6 6
7 #include <stddef.h>
8
7 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h"
8 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
10 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
11 #include "net/http/http_request_headers.h" 14 #include "net/http/http_request_headers.h"
12 #include "net/url_request/url_request_test_util.h" 15 #include "net/url_request/url_request_test_util.h"
13 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
14 #import "third_party/ocmock/OCMock/OCMock.h" 17 #import "third_party/ocmock/OCMock/OCMock.h"
15 18
16 namespace { 19 namespace {
17 class WebPNetworkClientTest : public testing::Test { 20 class WebPNetworkClientTest : public testing::Test {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 request_context->CreateRequest(url, net::DEFAULT_PRIORITY, nullptr); 66 request_context->CreateRequest(url, net::DEFAULT_PRIORITY, nullptr);
64 if (!tests[i].header_in.empty()) 67 if (!tests[i].header_in.empty())
65 request->SetExtraRequestHeaderByName("Accept", tests[i].header_in, true); 68 request->SetExtraRequestHeaderByName("Accept", tests[i].header_in, true);
66 [webp_client_ didCreateNativeRequest:request.get()]; 69 [webp_client_ didCreateNativeRequest:request.get()];
67 const net::HttpRequestHeaders& headers = request->extra_request_headers(); 70 const net::HttpRequestHeaders& headers = request->extra_request_headers();
68 std::string acceptHeader; 71 std::string acceptHeader;
69 EXPECT_TRUE(headers.GetHeader("Accept", &acceptHeader)); 72 EXPECT_TRUE(headers.GetHeader("Accept", &acceptHeader));
70 EXPECT_EQ(tests[i].header_out, acceptHeader); 73 EXPECT_EQ(tests[i].header_out, acceptHeader);
71 } 74 }
72 } 75 }
OLDNEW
« no previous file with comments | « components/webp_transcode/webp_network_client.mm ('k') | components/webusb/webusb_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698