Fix broken tests for P2PDirect sample

Change-Id: Icdee514941d469631e9b111f3435f4366eb99fcd
diff --git a/connectivity/wifidirect/DirectP2P/Application/tests/AndroidManifest.xml b/connectivity/wifidirect/DirectP2P/Application/tests/AndroidManifest.xml
index a636d3d..504c724 100644
--- a/connectivity/wifidirect/DirectP2P/Application/tests/AndroidManifest.xml
+++ b/connectivity/wifidirect/DirectP2P/Application/tests/AndroidManifest.xml
@@ -14,22 +14,6 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 -->
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  Copyright (C) 2013 The Android Open Source Project
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
 <!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
           package="com.example.android.wifidirectp2p.tests"
@@ -55,4 +39,4 @@
             android:targetPackage="com.example.android.wifidirectp2p"
             android:label="Tests for com.example.android.wifidirectp2p" />
 
-</manifest>
\ No newline at end of file
+</manifest>
diff --git a/connectivity/wifidirect/DirectP2P/Application/tests/src/com/example/android/wifidirectp2p/tests/SampleTests.java b/connectivity/wifidirect/DirectP2P/Application/tests/src/com/example/android/wifidirectp2p/tests/SampleTests.java
index 895f2c1..31a0170 100644
--- a/connectivity/wifidirect/DirectP2P/Application/tests/src/com/example/android/wifidirectp2p/tests/SampleTests.java
+++ b/connectivity/wifidirect/DirectP2P/Application/tests/src/com/example/android/wifidirectp2p/tests/SampleTests.java
@@ -13,21 +13,6 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-/*
-* Copyright (C) 2013 The Android Open Source Project
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
 package com.example.android.wifidirectp2p.tests;
 
 import com.example.android.wifidirectp2p.*;
@@ -40,7 +25,6 @@
 public class SampleTests extends ActivityInstrumentationTestCase2<MainActivity> {
 
     private MainActivity mTestActivity;
-    private DirectP2PFragment mTestFragment;
 
     public SampleTests() {
         super(MainActivity.class);
@@ -55,8 +39,6 @@
         // flags = {@link Intent#FLAG_ACTIVITY_NEW_TASK}
         // All other fields are null or empty.
         mTestActivity = getActivity();
-        mTestFragment = (DirectP2PFragment)
-            mTestActivity.getSupportFragmentManager().getFragments().get(1);
     }
 
     /**
@@ -66,11 +48,10 @@
         //Try to add a message to add context to your assertions. These messages will be shown if
         //a tests fails and make it easy to understand why a test failed
         assertNotNull("mTestActivity is null", mTestActivity);
-        assertNotNull("mTestFragment is null", mTestFragment);
     }
 
     /**
     * Add more tests below.
     */
 
-}
\ No newline at end of file
+}