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

Side by Side Diff: tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder_unittest.py

Issue 26718002: Remove references to sconsbuild (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import unittest 4 import unittest
5 5
6 from telemetry.core import browser_options 6 from telemetry.core import browser_options
7 from telemetry.core.backends.chrome import desktop_browser_finder 7 from telemetry.core.backends.chrome import desktop_browser_finder
8 from telemetry.unittest import system_stub 8 from telemetry.unittest import system_stub
9 9
10 # This file verifies the logic for finding a browser instance on all platforms 10 # This file verifies the logic for finding a browser instance on all platforms
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 self._stubs.sys.platform = 'win32' 66 self._stubs.sys.platform = 'win32'
67 67
68 def testFindBuild(self): 68 def testFindBuild(self):
69 self._files.append('..\\..\\..\\build\\Release\\chrome.exe') 69 self._files.append('..\\..\\..\\build\\Release\\chrome.exe')
70 self.assertTrue('release' in self.DoFindAllTypes()) 70 self.assertTrue('release' in self.DoFindAllTypes())
71 71
72 def testFindOut(self): 72 def testFindOut(self):
73 self._files.append('..\\..\\..\\out\\Release\\chrome.exe') 73 self._files.append('..\\..\\..\\out\\Release\\chrome.exe')
74 self.assertTrue('release' in self.DoFindAllTypes()) 74 self.assertTrue('release' in self.DoFindAllTypes())
75 75
76 def testFindSconsbuild(self):
77 self._files.append('..\\..\\..\\sconsbuild\\Release\\chrome.exe')
78 self.assertTrue('release' in self.DoFindAllTypes())
79
80 def testFindXcodebuild(self): 76 def testFindXcodebuild(self):
81 self._files.append('..\\..\\..\\xcodebuild\\Release\\chrome.exe') 77 self._files.append('..\\..\\..\\xcodebuild\\Release\\chrome.exe')
82 self.assertTrue('release' in self.DoFindAllTypes()) 78 self.assertTrue('release' in self.DoFindAllTypes())
83 79
84 class OSXFindTest(FindTestBase): 80 class OSXFindTest(FindTestBase):
85 def setUp(self): 81 def setUp(self):
86 super(OSXFindTest, self).setUp() 82 super(OSXFindTest, self).setUp()
87 self._stubs.sys.platform = 'darwin' 83 self._stubs.sys.platform = 'darwin'
88 self._files.append('/Applications/Google Chrome Canary.app/' 84 self._files.append('/Applications/Google Chrome Canary.app/'
89 'Contents/MacOS/Google Chrome Canary') 85 'Contents/MacOS/Google Chrome Canary')
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 175
180 def testFindAllWithExact(self): 176 def testFindAllWithExact(self):
181 self._finder_options.browser_executable = 'c:\\tmp\\chrome.exe' 177 self._finder_options.browser_executable = 'c:\\tmp\\chrome.exe'
182 types = self.DoFindAllTypes() 178 types = self.DoFindAllTypes()
183 self.assertEquals( 179 self.assertEquals(
184 set(types), 180 set(types),
185 set(['exact', 181 set(['exact',
186 'debug', 'release', 182 'debug', 'release',
187 'content-shell-debug', 'content-shell-release', 183 'content-shell-debug', 'content-shell-release',
188 'system', 'canary'])) 184 'system', 'canary']))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698