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 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
6 | 6 |
7 import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL; | 7 import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL; |
8 import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW; | 8 import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW; |
9 import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_MODERATE; | 9 import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_MODERATE; |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 public boolean isInSandbox() { | 113 public boolean isInSandbox() { |
114 return true; | 114 return true; |
115 } | 115 } |
116 | 116 |
117 @Override | 117 @Override |
118 public IChildProcessService getService() { | 118 public IChildProcessService getService() { |
119 throw new UnsupportedOperationException(); | 119 throw new UnsupportedOperationException(); |
120 } | 120 } |
121 | 121 |
122 @Override | 122 @Override |
123 public void start(String[] commandLine, StartCallback startCallback) { | 123 public void start(StartCallback startCallback) { |
124 throw new UnsupportedOperationException(); | 124 throw new UnsupportedOperationException(); |
125 } | 125 } |
126 | 126 |
127 @Override | 127 @Override |
128 public void setupConnection(String[] commandLine, FileDescriptorInfo[] f
ilesToBeMapped, | 128 public void setupConnection(String[] commandLine, FileDescriptorInfo[] f
ilesToBeMapped, |
129 IChildProcessCallback processCallback, ConnectionCallback connec
tionCallbacks, | 129 IChildProcessCallback processCallback, ConnectionCallback connec
tionCallbacks, |
130 Bundle sharedRelros) { | 130 Bundle sharedRelros) { |
131 throw new UnsupportedOperationException(); | 131 throw new UnsupportedOperationException(); |
132 } | 132 } |
133 | 133 |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 | 715 |
716 manager.onSentToBackground(); | 716 manager.onSentToBackground(); |
717 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); | 717 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); |
718 Assert.assertFalse(connection.isModerateBindingBound()); | 718 Assert.assertFalse(connection.isModerateBindingBound()); |
719 | 719 |
720 // Bringing Chrome to the foreground should not re-add the moderate bind
ings. | 720 // Bringing Chrome to the foreground should not re-add the moderate bind
ings. |
721 manager.onBroughtToForeground(); | 721 manager.onBroughtToForeground(); |
722 Assert.assertFalse(connection.isModerateBindingBound()); | 722 Assert.assertFalse(connection.isModerateBindingBound()); |
723 } | 723 } |
724 } | 724 } |
OLD | NEW |