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

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

Issue 584163004: Move web_request directory to //extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 6 years, 2 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 "base/basictypes.h"
6 #include "base/values.h" 6 #include "base/values.h"
7 #include "chrome/browser/extensions/api/web_request/upload_data_presenter.h" 7 #include "extensions/browser/api/web_request/upload_data_presenter.h"
8 #include "extensions/browser/api/web_request/web_request_api_constants.h" 8 #include "extensions/browser/api/web_request/web_request_api_constants.h"
9 #include "net/base/upload_bytes_element_reader.h" 9 #include "net/base/upload_bytes_element_reader.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace keys = extension_web_request_api_constants; 12 namespace keys = extension_web_request_api_constants;
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // This only tests the handling of dots in keys. Other functionality is covered 16 // This only tests the handling of dots in keys. Other functionality is covered
17 // by ExtensionWebRequestTest.AccessRequestBodyData and 17 // by ExtensionWebRequestTest.AccessRequestBodyData and
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 raw_presenter.FeedNextFile(kFilename); 72 raw_presenter.FeedNextFile(kFilename);
73 raw_presenter.FeedNextBytes(block2, block2_size); 73 raw_presenter.FeedNextBytes(block2, block2_size);
74 EXPECT_TRUE(raw_presenter.Succeeded()); 74 EXPECT_TRUE(raw_presenter.Succeeded());
75 scoped_ptr<base::Value> result = raw_presenter.Result(); 75 scoped_ptr<base::Value> result = raw_presenter.Result();
76 ASSERT_TRUE(result.get() != NULL); 76 ASSERT_TRUE(result.get() != NULL);
77 77
78 EXPECT_TRUE(result->Equals(&expected_list)); 78 EXPECT_TRUE(result->Equals(&expected_list));
79 } 79 }
80 80
81 } // namespace extensions 81 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/upload_data_presenter.cc ('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