| OLD | NEW |
| 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 "chrome/browser/extensions/api/web_request/upload_data_presenter.h" |
| 8 #include "chrome/browser/extensions/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 |
| 18 // WebRequestFormDataParserTest. | 18 // WebRequestFormDataParserTest. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |