| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 multipart_lines[25].c_str()); | 482 multipart_lines[25].c_str()); |
| 483 EXPECT_STREQ("Content-Type: application/gzip", | 483 EXPECT_STREQ("Content-Type: application/gzip", |
| 484 multipart_lines[26].c_str()); | 484 multipart_lines[26].c_str()); |
| 485 EXPECT_TRUE(multipart_lines[27].empty()); | 485 EXPECT_TRUE(multipart_lines[27].empty()); |
| 486 EXPECT_TRUE(multipart_lines[28].empty()); // The removed zip part. | 486 EXPECT_TRUE(multipart_lines[28].empty()); // The removed zip part. |
| 487 std::string final_delimiter = boundary; | 487 std::string final_delimiter = boundary; |
| 488 final_delimiter += "--"; | 488 final_delimiter += "--"; |
| 489 EXPECT_STREQ(final_delimiter.c_str(), multipart_lines[29].c_str()); | 489 EXPECT_STREQ(final_delimiter.c_str(), multipart_lines[29].c_str()); |
| 490 EXPECT_TRUE(multipart_lines[30].empty()); | 490 EXPECT_TRUE(multipart_lines[30].empty()); |
| 491 } | 491 } |
| OLD | NEW |