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

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

Issue 2762773002: Remove the linker parameter from ChildProcessConnection. (Closed)
Patch Set: Created 3 years, 9 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
11 import android.app.Activity; 11 import android.app.Activity;
12 import android.app.Application; 12 import android.app.Application;
13 import android.os.Bundle;
14 import android.util.Pair; 13 import android.util.Pair;
15 14
16 import org.junit.Assert; 15 import org.junit.Assert;
17 import org.junit.Before; 16 import org.junit.Before;
18 import org.junit.Test; 17 import org.junit.Test;
19 import org.junit.runner.RunWith; 18 import org.junit.runner.RunWith;
20 19
21 import org.robolectric.Robolectric; 20 import org.robolectric.Robolectric;
22 import org.robolectric.annotation.Config; 21 import org.robolectric.annotation.Config;
23 import org.robolectric.shadows.ShadowLooper; 22 import org.robolectric.shadows.ShadowLooper;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 throw new UnsupportedOperationException(); 119 throw new UnsupportedOperationException();
121 } 120 }
122 121
123 @Override 122 @Override
124 public void start(StartCallback startCallback) { 123 public void start(StartCallback startCallback) {
125 throw new UnsupportedOperationException(); 124 throw new UnsupportedOperationException();
126 } 125 }
127 126
128 @Override 127 @Override
129 public void setupConnection(String[] commandLine, FileDescriptorInfo[] f ilesToBeMapped, 128 public void setupConnection(String[] commandLine, FileDescriptorInfo[] f ilesToBeMapped,
130 IChildProcessCallback processCallback, ConnectionCallback connec tionCallbacks, 129 IChildProcessCallback processCallback, ConnectionCallback connec tionCallbacks) {
131 Bundle sharedRelros) {
132 throw new UnsupportedOperationException(); 130 throw new UnsupportedOperationException();
133 } 131 }
134 132
135 @Override 133 @Override
136 public void addModerateBinding() { 134 public void addModerateBinding() {
137 mModerateBindingBound = true; 135 mModerateBindingBound = true;
138 } 136 }
139 137
140 @Override 138 @Override
141 public void removeModerateBinding() { 139 public void removeModerateBinding() {
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 696
699 manager.onSentToBackground(); 697 manager.onSentToBackground();
700 ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); 698 ShadowLooper.runUiThreadTasksIncludingDelayedTasks();
701 Assert.assertFalse(connection.isModerateBindingBound()); 699 Assert.assertFalse(connection.isModerateBindingBound());
702 700
703 // Bringing Chrome to the foreground should not re-add the moderate bind ings. 701 // Bringing Chrome to the foreground should not re-add the moderate bind ings.
704 manager.onBroughtToForeground(); 702 manager.onBroughtToForeground();
705 Assert.assertFalse(connection.isModerateBindingBound()); 703 Assert.assertFalse(connection.isModerateBindingBound());
706 } 704 }
707 } 705 }
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