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

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: 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
Index: remoting/base/BUILD.gn
diff --git a/remoting/base/BUILD.gn b/remoting/base/BUILD.gn
index 2295e58f7cd649794c2d61f842aede2d2160923c..7b774a69290a39d7606e928cfd194a8208bacd66 100644
--- a/remoting/base/BUILD.gn
+++ b/remoting/base/BUILD.gn
@@ -20,8 +20,19 @@ source_set("base") {
"compound_buffer.h",
"constants.cc",
"constants.h",
+
nicholss 2017/01/31 16:44:58 Will fix.
+ # "gaia_oauth_client.cc",
+ # "gaia_oauth_client.h",
"leaky_bucket.cc",
"leaky_bucket.h",
+
+ # "oauth_client.h",
+ # "oauth_helper.cc",
+ # "oauth_helper.h",
+ # "oauth_token_getter_impl.cc",
+ # "oauth_token_getter_impl.h",
+ # "oauth_token_getter.cc",
+ # "oauth_token_getter.h",
"rate_counter.cc",
"rate_counter.h",
"rsa_key_pair.cc",
@@ -71,6 +82,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 +128,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 +163,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",
]

Powered by Google App Engine
This is Rietveld 408576698