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

Side by Side Diff: media/blink/buffered_resource_loader_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef 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 | « media/blink/buffered_resource_loader.cc ('k') | media/blink/cache_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 <stdint.h>
6
5 #include <algorithm> 7 #include <algorithm>
6 #include <string> 8 #include <string>
7 9
8 #include "base/bind.h" 10 #include "base/bind.h"
9 #include "base/format_macros.h" 11 #include "base/format_macros.h"
12 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
11 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
12 #include "media/base/media_log.h" 15 #include "media/base/media_log.h"
13 #include "media/base/seekable_buffer.h" 16 #include "media/base/seekable_buffer.h"
14 #include "media/blink/buffered_resource_loader.h" 17 #include "media/blink/buffered_resource_loader.h"
15 #include "media/blink/mock_webframeclient.h" 18 #include "media/blink/mock_webframeclient.h"
16 #include "media/blink/mock_weburlloader.h" 19 #include "media/blink/mock_weburlloader.h"
17 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
18 #include "net/http/http_request_headers.h" 21 #include "net/http/http_request_headers.h"
19 #include "net/http/http_util.h" 22 #include "net/http/http_util.h"
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 1163
1161 // As soon as we have received enough data to fulfill the read, defer. 1164 // As soon as we have received enough data to fulfill the read, defer.
1162 EXPECT_CALL(*this, LoadingCallback(BufferedResourceLoader::kLoadingDeferred)); 1165 EXPECT_CALL(*this, LoadingCallback(BufferedResourceLoader::kLoadingDeferred));
1163 EXPECT_CALL(*this, ReadCallback(BufferedResourceLoader::kOk, 10)); 1166 EXPECT_CALL(*this, ReadCallback(BufferedResourceLoader::kOk, 10));
1164 WriteLoader(19, 1); 1167 WriteLoader(19, 1);
1165 VerifyBuffer(buffer, 10, 10); 1168 VerifyBuffer(buffer, 10, 10);
1166 EXPECT_FALSE(HasActiveLoader()); 1169 EXPECT_FALSE(HasActiveLoader());
1167 } 1170 }
1168 1171
1169 } // namespace media 1172 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/buffered_resource_loader.cc ('k') | media/blink/cache_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698