Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Side by Side Diff: athena/test/chrome/athena_browsertest.cc

Issue 677233002: Fixing trybot failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« athena/test/chrome/athena_app_browsertest.cc ('K') | « athena/test/chrome/athena_browsertest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698