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 "content/public/test/test_launcher.h" | 5 #include "content/public/test/test_launcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
26 #include "content/public/app/startup_helper_win.h" | 26 #include "content/public/app/startup_helper_win.h" |
27 #include "content/public/common/sandbox_init.h" | 27 #include "content/public/common/sandbox_init.h" |
28 #include "content/public/test/browser_test.h" | 28 #include "content/public/test/browser_test.h" |
29 #include "net/base/escape.h" | 29 #include "net/base/escape.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 #include "base/base_switches.h" | 33 #include "base/base_switches.h" |
34 #include "content/common/sandbox_policy.h" | 34 #include "content/common/sandbox_policy.h" |
35 #include "sandbox/src/dep.h" | 35 #include "sandbox/win/src/dep.h" |
36 #include "sandbox/src/sandbox_factory.h" | 36 #include "sandbox/win/src/sandbox_factory.h" |
37 #include "sandbox/src/sandbox_types.h" | 37 #include "sandbox/win/src/sandbox_types.h" |
38 #elif defined(OS_MACOSX) | 38 #elif defined(OS_MACOSX) |
39 #include "base/mac/scoped_nsautorelease_pool.h" | 39 #include "base/mac/scoped_nsautorelease_pool.h" |
40 #endif | 40 #endif |
41 | 41 |
42 namespace test_launcher { | 42 namespace test_launcher { |
43 | 43 |
44 // The environment variable name for the total number of test shards. | 44 // The environment variable name for the total number of test shards. |
45 const char kTestTotalShards[] = "GTEST_TOTAL_SHARDS"; | 45 const char kTestTotalShards[] = "GTEST_TOTAL_SHARDS"; |
46 // The environment variable name for the test shard index. | 46 // The environment variable name for the test shard index. |
47 const char kTestShardIndex[] = "GTEST_SHARD_INDEX"; | 47 const char kTestShardIndex[] = "GTEST_SHARD_INDEX"; |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 } | 658 } |
659 | 659 |
660 // Special value "-1" means "repeat indefinitely". | 660 // Special value "-1" means "repeat indefinitely". |
661 if (cycles != -1) | 661 if (cycles != -1) |
662 cycles--; | 662 cycles--; |
663 } | 663 } |
664 return exit_code; | 664 return exit_code; |
665 } | 665 } |
666 | 666 |
667 } // namespace test_launcher | 667 } // namespace test_launcher |
OLD | NEW |