OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/scoped_temp_dir.h" | 6 #include "base/scoped_temp_dir.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/test/base/in_process_browser_test.h" | 8 #include "chrome/test/base/in_process_browser_test.h" |
| 9 #include "chrome/test/base/testing_browser_process.h" |
9 #include "chrome/test/base/ui_test_utils.h" | 10 #include "chrome/test/base/ui_test_utils.h" |
10 #include "chrome/test/testing_browser_process.h" | |
11 #include "content/browser/download/mhtml_generation_manager.h" | 11 #include "content/browser/download/mhtml_generation_manager.h" |
12 #include "content/browser/tab_contents/tab_contents.h" | 12 #include "content/browser/tab_contents/tab_contents.h" |
13 #include "content/common/content_notification_types.h" | 13 #include "content/common/content_notification_types.h" |
14 #include "net/test/test_server.h" | 14 #include "net/test/test_server.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 class MHTMLGenerationTest : public InProcessBrowserTest { | 19 class MHTMLGenerationTest : public InProcessBrowserTest { |
20 public: | 20 public: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ASSERT_TRUE(signal.GetDetailsFor(source.map_key(), &details)); | 57 ASSERT_TRUE(signal.GetDetailsFor(source.map_key(), &details)); |
58 ASSERT_TRUE(details.success); | 58 ASSERT_TRUE(details.success); |
59 | 59 |
60 // Make sure the generated file has some contents. | 60 // Make sure the generated file has some contents. |
61 int64 file_size; | 61 int64 file_size; |
62 ASSERT_TRUE(file_util::GetFileSize(path, &file_size)); | 62 ASSERT_TRUE(file_util::GetFileSize(path, &file_size)); |
63 EXPECT_GT(file_size, 100); | 63 EXPECT_GT(file_size, 100); |
64 } | 64 } |
65 | 65 |
66 } // namespace | 66 } // namespace |
OLD | NEW |