OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/common/automation_constants.h" | 9 #include "chrome/common/automation_constants.h" |
10 #include "chrome/common/automation_messages.h" | 10 #include "chrome/common/automation_messages.h" |
11 #include "chrome/test/automation/automation_proxy.h" | 11 #include "chrome/test/automation/automation_proxy.h" |
12 #include "chrome/test/automation/browser_proxy.h" | 12 #include "chrome/test/automation/browser_proxy.h" |
13 #include "chrome/test/automation/tab_proxy.h" | 13 #include "chrome/test/automation/tab_proxy.h" |
14 #include "chrome/test/perf/perf_test.h" | 14 #include "chrome/test/perf/perf_test.h" |
15 #include "chrome/test/ui/ui_perf_test.h" | 15 #include "chrome/test/ui/ui_perf_test.h" |
16 #include "net/test/spawned_test_server/spawned_test_server.h" | 16 #include "net/test/spawned_test_server/spawned_test_server.h" |
17 | 17 |
18 namespace { | 18 namespace { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 for (int i = 0; i < tab_count - 1; ++i) { | 93 for (int i = 0; i < tab_count - 1; ++i) { |
94 scoped_refptr<TabProxy> tab(browser->GetActiveTab()); | 94 scoped_refptr<TabProxy> tab(browser->GetActiveTab()); |
95 ASSERT_TRUE(tab.get()); | 95 ASSERT_TRUE(tab.get()); |
96 | 96 |
97 EXPECT_TRUE(tab->Close(true)); | 97 EXPECT_TRUE(tab->Close(true)); |
98 RecordPortCount(); | 98 RecordPortCount(); |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 } // namespace | 102 } // namespace |
OLD | NEW |