| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/callback.h" | 5 #include "base/callback.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/message_loop.h" |
| 7 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 8 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 9 #include "net/base/file_stream.h" | 10 #include "net/base/file_stream.h" |
| 10 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 11 #include "net/base/test_completion_callback.h" | 12 #include "net/base/test_completion_callback.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 write_stream.Close(); | 884 write_stream.Close(); |
| 884 | 885 |
| 885 // Read in the contents and make sure we get back what we expected. | 886 // Read in the contents and make sure we get back what we expected. |
| 886 std::string read_contents; | 887 std::string read_contents; |
| 887 EXPECT_TRUE(file_util::ReadFileToString(temp_file_path(), &read_contents)); | 888 EXPECT_TRUE(file_util::ReadFileToString(temp_file_path(), &read_contents)); |
| 888 | 889 |
| 889 EXPECT_EQ("01230123", read_contents); | 890 EXPECT_EQ("01230123", read_contents); |
| 890 } | 891 } |
| 891 | 892 |
| 892 } // namespace | 893 } // namespace |
| OLD | NEW |