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

Side by Side Diff: extensions/browser/api/web_request/upload_data_presenter_unittest.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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
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/basictypes.h" 5 #include <stddef.h>
6
6 #include "base/values.h" 7 #include "base/values.h"
7 #include "extensions/browser/api/web_request/upload_data_presenter.h" 8 #include "extensions/browser/api/web_request/upload_data_presenter.h"
8 #include "extensions/browser/api/web_request/web_request_api_constants.h" 9 #include "extensions/browser/api/web_request/web_request_api_constants.h"
9 #include "net/base/upload_bytes_element_reader.h" 10 #include "net/base/upload_bytes_element_reader.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 namespace keys = extension_web_request_api_constants; 13 namespace keys = extension_web_request_api_constants;
13 14
14 namespace extensions { 15 namespace extensions {
15 16
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 raw_presenter.FeedNextFile(kFilename); 73 raw_presenter.FeedNextFile(kFilename);
73 raw_presenter.FeedNextBytes(block2, block2_size); 74 raw_presenter.FeedNextBytes(block2, block2_size);
74 EXPECT_TRUE(raw_presenter.Succeeded()); 75 EXPECT_TRUE(raw_presenter.Succeeded());
75 scoped_ptr<base::Value> result = raw_presenter.Result(); 76 scoped_ptr<base::Value> result = raw_presenter.Result();
76 ASSERT_TRUE(result.get() != NULL); 77 ASSERT_TRUE(result.get() != NULL);
77 78
78 EXPECT_TRUE(result->Equals(&expected_list)); 79 EXPECT_TRUE(result->Equals(&expected_list));
79 } 80 }
80 81
81 } // namespace extensions 82 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/upload_data_presenter.h ('k') | extensions/browser/api/web_request/web_request_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698