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

Side by Side Diff: blimp/engine/app/blimp_engine_config_unittest.cc

Issue 1958033003: Allows client to access auth token from command line specified file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds documentation Created 4 years, 7 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 | « blimp/engine/app/blimp_engine_config.cc ('k') | blimp/engine/app/switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "blimp/engine/app/blimp_engine_config.h" 5 #include "blimp/engine/app/blimp_engine_config.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "blimp/engine/app/switches.h" 15 #include "blimp/common/switches.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace blimp { 18 namespace blimp {
19 namespace engine { 19 namespace engine {
20 namespace { 20 namespace {
21 21
22 // Reference client token. 22 // Reference client token.
23 static const char kTestClientToken[] = "Reference client token"; 23 static const char kTestClientToken[] = "Reference client token";
24 24
25 class BlimpEngineConfigTest : public testing::Test { 25 class BlimpEngineConfigTest : public testing::Test {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 RemoveFileForSwitch(kClientTokenPath); 77 RemoveFileForSwitch(kClientTokenPath);
78 CreateFileForSwitch(kClientTokenPath, " "); 78 CreateFileForSwitch(kClientTokenPath, " ");
79 auto cmd_line = CreateCommandLine(all_filepath_switches_); 79 auto cmd_line = CreateCommandLine(all_filepath_switches_);
80 auto engine_config = BlimpEngineConfig::Create(cmd_line); 80 auto engine_config = BlimpEngineConfig::Create(cmd_line);
81 EXPECT_EQ(nullptr, engine_config); 81 EXPECT_EQ(nullptr, engine_config);
82 } 82 }
83 83
84 } // namespace 84 } // namespace
85 } // namespace engine 85 } // namespace engine
86 } // namespace blimp 86 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_engine_config.cc ('k') | blimp/engine/app/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698