Add test_display_source_python() test case to TestSourceManager.py which uses
the lldb PyThon API SBSourceManager to display source files.

To accomodate this, the C++ SBSourceManager API has been changed to take an
lldb::SBStream as the destination for display of source lines.  Modify SBStream::ctor()
so that its opaque pointer is initialized with an StreamString instance.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@121605 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBSourceManager.cpp b/source/API/SBSourceManager.cpp
index 32f792d..0fa98e3 100644
--- a/source/API/SBSourceManager.cpp
+++ b/source/API/SBSourceManager.cpp
@@ -9,6 +9,7 @@
 
 
 #include "lldb/API/SBSourceManager.h"
+#include "lldb/API/SBStream.h"
 
 #include "lldb/API/SBFileSpec.h"
 #include "lldb/Core/Stream.h"
@@ -49,26 +50,23 @@
     uint32_t context_before,
     uint32_t context_after,
     const char* current_line_cstr,
-    FILE *f
+    SBStream &s
 )
 {
     if (m_opaque_ptr == NULL)
         return 0;
 
-    if (f == NULL)
+    if (s.m_opaque_ap.get() == NULL)
         return 0;
 
     if (file.IsValid())
     {
-        StreamFile str (f);
-
-
         return m_opaque_ptr->DisplaySourceLinesWithLineNumbers (*file,
                                                                 line,
                                                                 context_before,
                                                                 context_after,
                                                                 current_line_cstr,
-                                                                &str);
+                                                                s.m_opaque_ap.get());
     }
     return 0;
 }