Home
last modified time | relevance | path

Searched refs:env_var (Results 1 – 25 of 55) sorted by relevance

123

/external/google-breakpad/src/testing/gtest/test/
Dgtest_env_var_test.py55 def SetEnvVar(env_var, value): argument
59 environ[env_var] = value
60 elif env_var in environ:
61 del environ[env_var]
77 env_var = 'GTEST_' + flag.upper()
78 SetEnvVar(env_var, test_val)
80 SetEnvVar(env_var, None)
Dgtest_throw_on_failure_test.py58 def SetEnvVar(env_var, value): argument
63 env_var = env_var.upper()
65 os.environ[env_var] = value
66 elif env_var in os.environ:
67 del os.environ[env_var]
Dgtest_color_test.py47 def SetEnvVar(env_var, value): argument
51 os.environ[env_var] = value
52 elif env_var in os.environ:
53 del os.environ[env_var]
Dgtest_break_on_failure_unittest.py75 def SetEnvVar(env_var, value): argument
81 environ[env_var] = value
82 elif env_var in environ:
83 del environ[env_var]
Dgtest_filter_unittest.py169 def SetEnvVar(env_var, value): argument
173 environ[env_var] = value
174 elif env_var in environ:
175 del environ[env_var]
/external/libcxx/utils/google-benchmark/src/
Dcommandlineflags.cc84 std::string env_var; in FlagToEnvVar() local
86 env_var += static_cast<char>(::toupper(flag_str.c_str()[i])); in FlagToEnvVar()
88 return "BENCHMARK_" + env_var; in FlagToEnvVar()
96 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv() local
97 const char* const string_value = getenv(env_var.c_str()); in BoolFromEnv()
106 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv() local
107 const char* const string_value = getenv(env_var.c_str()); in Int32FromEnv()
114 if (!ParseInt32(std::string("Environment variable ") + env_var, string_value, in Int32FromEnv()
126 const std::string env_var = FlagToEnvVar(flag); in StringFromEnv() local
127 const char* const value = getenv(env_var.c_str()); in StringFromEnv()
/external/google-benchmark/src/
Dcommandlineflags.cc84 std::string env_var; in FlagToEnvVar() local
86 env_var += static_cast<char>(::toupper(flag_str.c_str()[i])); in FlagToEnvVar()
88 return "BENCHMARK_" + env_var; in FlagToEnvVar()
96 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv() local
97 const char* const string_value = getenv(env_var.c_str()); in BoolFromEnv()
106 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv() local
107 const char* const string_value = getenv(env_var.c_str()); in Int32FromEnv()
114 if (!ParseInt32(std::string("Environment variable ") + env_var, string_value, in Int32FromEnv()
126 const std::string env_var = FlagToEnvVar(flag); in StringFromEnv() local
127 const char* const value = getenv(env_var.c_str()); in StringFromEnv()
/external/googletest/googletest/test/
Dgoogletest-env-var-test.py53 def SetEnvVar(env_var, value): argument
57 environ[env_var] = value
58 elif env_var in environ:
59 del environ[env_var]
74 env_var = 'GTEST_' + flag.upper()
75 SetEnvVar(env_var, test_val)
77 SetEnvVar(env_var, None)
Dgoogletest-throw-on-failure-test.py56 def SetEnvVar(env_var, value): argument
61 env_var = env_var.upper()
63 os.environ[env_var] = value
64 elif env_var in os.environ:
65 del os.environ[env_var]
Dgoogletest-color-test.py44 def SetEnvVar(env_var, value): argument
48 os.environ[env_var] = value
49 elif env_var in os.environ:
50 del os.environ[env_var]
Dgtest_test_utils.py62 def SetEnvVar(env_var, value): argument
66 environ[env_var] = value
67 elif env_var in environ:
68 del environ[env_var]
/external/python/cpython3/Lib/test/
Dtest_c_locale_coercion.py265 for env_var in ("LANG", "LC_CTYPE"):
270 if env_var == "LANG" and locale_to_set == "UTF-8":
273 with self.subTest(env_var=env_var,
276 var_dict[env_var] = locale_to_set
352 for env_var in ("LANG", "LC_CTYPE"):
353 with self.subTest(env_var=env_var,
357 var_dict[env_var] = locale_to_set
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
Dgtest-port.cc654 Message env_var; in FlagToEnvVar() local
656 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
659 return env_var.GetString(); in FlagToEnvVar()
708 const String env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
709 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
718 const String env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
719 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
726 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
740 const String env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
741 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/llvm/utils/unittest/googletest/src/
Dgtest-port.cc658 Message env_var; in FlagToEnvVar() local
660 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
663 return env_var.GetString(); in FlagToEnvVar()
712 const String env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
713 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
722 const String env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
723 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
730 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
744 const String env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
745 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/webrtc/webrtc/examples/peerconnection/client/
Ddefaults.cc33 const char* env_var = getenv(env_var_name); in GetEnvVarOrDefault() local
34 if (env_var) in GetEnvVarOrDefault()
35 value = env_var; in GetEnvVarOrDefault()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-port.cc695 Message env_var; in FlagToEnvVar() local
697 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
700 return env_var.GetString(); in FlagToEnvVar()
749 const String env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
750 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
759 const String env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
760 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
767 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
781 const String env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
782 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/u-boot/common/
Dhash.c273 int env_var = 0; in store_result() local
285 env_var = 1; in store_result()
288 if (env_var) { in store_result()
328 int env_var = 0; in parse_verify_sum() local
335 env_var = 1; in parse_verify_sum()
338 if (!env_var) { in parse_verify_sum()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-port.cc1197 Message env_var; in FlagToEnvVar() local
1199 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1202 return env_var.GetString(); in FlagToEnvVar()
1254 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
1255 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1268 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
1269 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1276 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1311 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
1312 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/mesa3d/src/gtest/src/
Dgtest-port.cc1138 Message env_var; in FlagToEnvVar() local
1140 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1143 return env_var.GetString(); in FlagToEnvVar()
1195 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
1196 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1208 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
1209 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1216 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1233 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
1234 const char* value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-port.cc1138 Message env_var; in FlagToEnvVar() local
1140 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1143 return env_var.GetString(); in FlagToEnvVar()
1195 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
1196 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1208 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
1209 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1216 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1233 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
1234 const char* value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-port.cc1138 Message env_var; in FlagToEnvVar() local
1140 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1143 return env_var.GetString(); in FlagToEnvVar()
1195 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
1196 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1208 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
1209 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1216 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1233 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
1234 const char* value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/mesa3d/src/mesa/main/
Dversion.c58 const char *env_var = (api == API_OPENGL_CORE || api == API_OPENGL_COMPAT) in get_gl_override() local
81 version_str = getenv(env_var); in get_gl_override()
89 env_var, version_str); in get_gl_override()
101 env_var, version_str); in get_gl_override()
219 const char *env_var = "MESA_GLSL_VERSION_OVERRIDE"; in _mesa_override_glsl_version() local
223 version = getenv(env_var); in _mesa_override_glsl_version()
230 fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version); in _mesa_override_glsl_version()
/external/googletest/googletest/src/
Dgtest-port.cc1263 Message env_var; in FlagToEnvVar() local
1265 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1268 return env_var.GetString(); in FlagToEnvVar()
1320 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
1321 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1334 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
1335 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1342 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1377 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
1378 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/chromium-trace/catapult/devil/devil/
Ddevil_env_test.py42 def mock_environment(env_var): argument
43 return '/my/fake/adb/path' if env_var == 'ADB_PATH' else None
/external/u-boot/board/compulab/cl-som-imx7/
Dcl-som-imx7.c177 static int cl_som_imx7_handle_mac_address(char *env_var, uint eeprom_bus) in cl_som_imx7_handle_mac_address() argument
182 ret = eth_env_get_enetaddr(env_var, enetaddr); in cl_som_imx7_handle_mac_address()
194 return eth_env_set_enetaddr(env_var, enetaddr); in cl_som_imx7_handle_mac_address()

123