OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "athena/test/chrome/athena_browsertest.h" | 5 #include "athena/test/chrome/athena_browsertest.h" |
6 | 6 |
7 #include "athena/test/chrome/test_util.h" | 7 #include "athena/test/chrome/test_util.h" |
| 8 #include "base/command_line.h" |
8 | 9 |
9 namespace athena { | 10 namespace athena { |
10 | 11 |
| 12 namespace { |
| 13 const char kNoNaclSandbox[] = "--no-sandbox"; |
| 14 } |
| 15 |
11 AthenaBrowserTest::AthenaBrowserTest() { | 16 AthenaBrowserTest::AthenaBrowserTest() { |
12 } | 17 } |
13 | 18 |
14 AthenaBrowserTest::~AthenaBrowserTest() { | 19 AthenaBrowserTest::~AthenaBrowserTest() { |
15 } | 20 } |
16 | 21 |
| 22 void AthenaBrowserTest::SetUpCommandLine(base::CommandLine* command_line) { |
| 23 // The NaCl sandbox won't work in our browser tests. |
| 24 command_line->AppendSwitch(kNoNaclSandbox); |
| 25 InProcessBrowserTest::SetUpCommandLine(command_line); |
| 26 } |
| 27 |
17 void AthenaBrowserTest::SetUpOnMainThread() { | 28 void AthenaBrowserTest::SetUpOnMainThread() { |
18 // Set the memory pressure to low and turning off undeterministic resource | 29 // Set the memory pressure to low and turning off undeterministic resource |
19 // observer events. | 30 // observer events. |
20 test_util::SendTestMemoryPressureEvent(ResourceManager::MEMORY_PRESSURE_LOW); | 31 test_util::SendTestMemoryPressureEvent(ResourceManager::MEMORY_PRESSURE_LOW); |
21 } | 32 } |
22 | 33 |
23 } // namespace athena | 34 } // namespace athena |
OLD | NEW |