aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/cc/client
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-02 10:45:56 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-02 10:49:13 -0800
commit040b4cbce7084b8340e075af4797f81359c2bbf4 (patch)
tree7252f01b8bbcc5950e90a529ee0fb11328e6acde /tensorflow/cc/client
parent127c98b9e3ed3b79284c5f16046071aa4ac2e7cb (diff)
Remove using directives. Test appertaining to ops have been moved into namespace tensorflow::ops; all other tests now use explicit using-declarations.
Some tests are now using unnamed namespaces more aggressively to make as many names internal as possible. PiperOrigin-RevId: 180564422
Diffstat (limited to 'tensorflow/cc/client')
-rw-r--r--tensorflow/cc/client/client_session_test.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/tensorflow/cc/client/client_session_test.cc b/tensorflow/cc/client/client_session_test.cc
index dfbac9788e..ea5cf5a1f1 100644
--- a/tensorflow/cc/client/client_session_test.cc
+++ b/tensorflow/cc/client/client_session_test.cc
@@ -23,7 +23,13 @@ limitations under the License.
#include "tensorflow/core/platform/test.h"
namespace tensorflow {
-using namespace ops; // NOLINT(build/namespaces)
+namespace {
+
+using ops::Add;
+using ops::Const;
+using ops::Mul;
+using ops::Placeholder;
+using ops::Sub;
TEST(ClientSessionTest, Basic) {
Scope root = Scope::NewRootScope();
@@ -89,4 +95,5 @@ TEST(ClientSessionTest, MultiThreaded) {
test::ExpectTensorEqual<int>(outputs[0], test::AsTensor<int>({-1, 2}, {2}));
}
-} // end namespace tensorflow
+} // namespace
+} // namespace tensorflow