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

Unified Diff: remoting/base/BUILD.gn

Issue 2661153003: Moving oauth code from host to base to allow code sharing between host and client. (Closed)
Patch Set: Merge branch 'master' into auth_token Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/base/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/BUILD.gn
diff --git a/remoting/base/BUILD.gn b/remoting/base/BUILD.gn
index 2295e58f7cd649794c2d61f842aede2d2160923c..da46b4b265a7816e662d9891edc25331fcf68b75 100644
--- a/remoting/base/BUILD.gn
+++ b/remoting/base/BUILD.gn
@@ -71,6 +71,31 @@ source_set("base") {
}
}
+source_set("authorization") {
+ sources = [
+ "gaia_oauth_client.cc",
+ "gaia_oauth_client.h",
+ "oauth_client.h",
+ "oauth_helper.cc",
+ "oauth_helper.h",
+ "oauth_token_getter.cc",
+ "oauth_token_getter.h",
+ "oauth_token_getter_impl.cc",
+ "oauth_token_getter_impl.h",
+ ]
+
+ configs += [
+ "//build/config/compiler:wexit_time_destructors",
+ "//remoting/build/config:version",
+ ]
+
+ public_deps = [
+ "//base",
+ "//google_apis",
+ "//net",
+ ]
+}
+
source_set("breakpad") {
sources = [
"breakpad.h",
@@ -92,6 +117,31 @@ source_set("breakpad") {
}
}
+static_library("test_support") {
+ testonly = true
+
+ sources = [
+ "fake_oauth_token_getter.cc",
+ "fake_oauth_token_getter.h",
+ "mock_oauth_client.cc",
+ "mock_oauth_client.h",
+ "test_rsa_key_pair.h",
+ ]
+
+ deps = [
+ "//remoting/proto",
+ ]
+ public_deps = [
+ ":authorization",
+ ":base",
+ ":breakpad",
+ "//base",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/protobuf:protobuf_lite",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
@@ -102,24 +152,20 @@ source_set("unit_tests") {
"buffered_socket_writer_unittest.cc",
"capabilities_unittest.cc",
"compound_buffer_unittest.cc",
+ "oauth_helper_unittest.cc",
"rate_counter_unittest.cc",
"rsa_key_pair_unittest.cc",
"run_all_unittests.cc",
"running_samples_unittest.cc",
"telemetry_log_writer_unittest.cc",
- "test_rsa_key_pair.h",
"typed_buffer_unittest.cc",
"util_unittest.cc",
]
deps = [
- ":base",
- ":breakpad",
- "//base",
+ ":test_support",
"//mojo/edk/system",
"//net:test_support",
- "//testing/gmock",
- "//testing/gtest",
"//third_party/libyuv",
"//third_party/webrtc/modules/desktop_capture:primitives",
]
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/base/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698