| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/chrome_browser_main.h" | 9 #include "chrome/browser/chrome_browser_main.h" |
| 10 #include "chrome/browser/chrome_content_browser_client.h" | 10 #include "chrome/browser/chrome_content_browser_client.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/test/base/testing_pref_service.h" | 12 #include "chrome/test/base/testing_pref_service.h" |
| 13 #include "content/browser/content_browser_client.h" | |
| 14 #include "content/common/main_function_params.h" | 13 #include "content/common/main_function_params.h" |
| 15 #include "content/common/sandbox_init_wrapper.h" | 14 #include "content/common/sandbox_init_wrapper.h" |
| 15 #include "content/public/browser/content_browser_client.h" |
| 16 #include "net/socket/client_socket_pool_base.h" | 16 #include "net/socket/client_socket_pool_base.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 class BrowserMainTest : public testing::Test { | 19 class BrowserMainTest : public testing::Test { |
| 20 public: | 20 public: |
| 21 BrowserMainTest() : command_line_(CommandLine::NO_PROGRAM) {} | 21 BrowserMainTest() : command_line_(CommandLine::NO_PROGRAM) {} |
| 22 protected: | 22 protected: |
| 23 virtual void SetUp() { | 23 virtual void SetUp() { |
| 24 sandbox_init_wrapper_.reset(new SandboxInitWrapper()); | 24 sandbox_init_wrapper_.reset(new SandboxInitWrapper()); |
| 25 } | 25 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 ChromeBrowserMainParts* cbw = static_cast<ChromeBrowserMainParts*>(bw.get()); | 79 ChromeBrowserMainParts* cbw = static_cast<ChromeBrowserMainParts*>(bw.get()); |
| 80 #if defined(NDEBUG) && defined(DCHECK_ALWAYS_ON) | 80 #if defined(NDEBUG) && defined(DCHECK_ALWAYS_ON) |
| 81 EXPECT_DEATH(cbw->WarmConnectionFieldTrial(), | 81 EXPECT_DEATH(cbw->WarmConnectionFieldTrial(), |
| 82 "Not a valid socket reuse policy group"); | 82 "Not a valid socket reuse policy group"); |
| 83 #else | 83 #else |
| 84 EXPECT_DEBUG_DEATH(cbw->WarmConnectionFieldTrial(), | 84 EXPECT_DEBUG_DEATH(cbw->WarmConnectionFieldTrial(), |
| 85 "Not a valid socket reuse policy group"); | 85 "Not a valid socket reuse policy group"); |
| 86 #endif | 86 #endif |
| 87 } | 87 } |
| OLD | NEW |