forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some small architectural changes required for the upcoming www UI. The main change introduced by this CL is moving the deps inclusion from run_tests to the main module initializer. Rationale: in the next cl, a new binary (start_web_ui) will need to include the same deps, so moving that to a common place. BUG=340294 NOTRY=true Review URL: https://codereview.chromium.org/192033003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256204 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
primiano@chromium.org
committed
Mar 11, 2014
1 parent
763db2a
commit 90d9a36
Showing
6 changed files
with
105 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2014 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import os | ||
import sys | ||
|
||
|
||
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) | ||
|
||
|
||
def RegisterAllBackends(): | ||
"""Registers all the known backends.""" | ||
from memory_inspector.core import backends | ||
from memory_inspector.backends.android import android_backend | ||
backends.Register(android_backend.AndroidBackend()) | ||
|
||
|
||
def _IncludeDeps(): | ||
"""Imports all the project dependencies.""" | ||
chromium_dir = os.path.abspath(os.path.join(ROOT_DIR, os.pardir, os.pardir)) | ||
assert(os.path.isdir(chromium_dir)), 'Cannot find chromium ' + chromium_dir | ||
|
||
sys.path += [ | ||
ROOT_DIR, | ||
|
||
# Include all dependencies. | ||
os.path.join(chromium_dir, 'build', 'android'), # For pylib. | ||
] | ||
|
||
_IncludeDeps() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters