| OLD | NEW |
| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/process_util.h" | 8 #include "base/process/launch.h" |
| 9 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 16 #include "chrome/browser/infobars/infobar.h" | 16 #include "chrome/browser/infobars/infobar.h" |
| 17 #include "chrome/browser/infobars/infobar_service.h" | 17 #include "chrome/browser/infobars/infobar_service.h" |
| 18 #include "chrome/browser/media/media_stream_infobar_delegate.h" | 18 #include "chrome/browser/media/media_stream_infobar_delegate.h" |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 multipart_lines[25].c_str()); | 505 multipart_lines[25].c_str()); |
| 506 EXPECT_STREQ("Content-Type: application/gzip", | 506 EXPECT_STREQ("Content-Type: application/gzip", |
| 507 multipart_lines[26].c_str()); | 507 multipart_lines[26].c_str()); |
| 508 EXPECT_TRUE(multipart_lines[27].empty()); | 508 EXPECT_TRUE(multipart_lines[27].empty()); |
| 509 EXPECT_TRUE(multipart_lines[28].empty()); // The removed zip part. | 509 EXPECT_TRUE(multipart_lines[28].empty()); // The removed zip part. |
| 510 std::string final_delimiter = boundary; | 510 std::string final_delimiter = boundary; |
| 511 final_delimiter += "--"; | 511 final_delimiter += "--"; |
| 512 EXPECT_STREQ(final_delimiter.c_str(), multipart_lines[29].c_str()); | 512 EXPECT_STREQ(final_delimiter.c_str(), multipart_lines[29].c_str()); |
| 513 EXPECT_TRUE(multipart_lines[30].empty()); | 513 EXPECT_TRUE(multipart_lines[30].empty()); |
| 514 } | 514 } |
| OLD | NEW |