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

Side by Side Diff: content/public/android/junit/src/org/chromium/content/browser/BindingManagerImplTest.java

Issue 2701893002: android: Remove command line from bind (Closed)
Patch Set: fix junit test compile Created 3 years, 10 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698